This commit is contained in:
Travis Staton 2023-11-22 11:49:52 -05:00
parent 8c92aa4f7a
commit b07fbab903
No known key found for this signature in database
GPG Key ID: 431DD911A00DAE49
3 changed files with 17 additions and 29 deletions

View File

@ -108,7 +108,7 @@ variableCanonicalizer vs =
suffix <- Name.suffixes n
pure (Var.named (Name.toText suffix), v)
where
done xs = Map.fromList [ (k, v) | (k, nubOrd -> [v]) <- Map.toList xs ]
done xs = Map.fromList [ (k, v) | (k, nubOrd -> [v]) <- Map.toList xs ] <> Map.fromList [(v,v) | v <- vs]
-- This function computes hashes for data and effect declarations, and
-- also returns a function for resolving strings to (Reference, ConstructorId)

View File

@ -4,6 +4,6 @@ unique type Foo = Foo
unique type sub.Foo =
```
```ucm:error
```ucm
.> load
```

View File

@ -6,38 +6,26 @@ unique type sub.Foo =
```ucm
I found and typechecked these definitions in scratch.u. If you
do an `add` or `update`, here's how your codebase would
change:
⍟ These new definitions are ok to `add`:
I couldn't resolve any of these symbols:
1 | unique type Foo = Foo
Symbol Suggestions
Foo No matches
unique type Foo
unique type sub.Foo
```
```ucm
.> load
🛑
The transcript failed due to an error in the stanza above. The error is:
I found and typechecked these definitions in scratch.u. If you
do an `add` or `update`, here's how your codebase would
change:
⍟ These new definitions are ok to `add`:
I couldn't resolve any of these symbols:
1 | unique type Foo = Foo
Symbol Suggestions
Foo No matches
unique type Foo
unique type sub.Foo
```