Skip to content

Naming a cases branch variable the same as an ability constructor leads to empty ucm output #1731

@samgqroberts

Description

@samgqroberts

My scratch file solely consists of:

repro : Text -> ()
repro = cases
  input -> ()

If I save, regardless of whether I change anything (except for the name input), ucm gives me empty output.
Eg. after 3 saves I see:

.>
.>
.>

If I change the name input to anything else, I get the expected "These new definitions are ok to add").

I believe this is somehow colliding with the following saved ability, and confusing ucm:

.> view CLI                                                                                                                                                                                                                    
  ability CLI where
    print : Text ->{CLI} ()
    input : {CLI} Text

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions