Open shriram opened 2 years ago
Something stranger is going on. After that failing test, I get this output for ALL expressions in the REPL?!?
See #1665
Something worse – contexts are making type
s that are just aliases (not constructed types) behave strangely at the REPL (in CPO).
There are some small reproductions, like just declaring type Num = Number
and then trying to use the REPL. Thankfully since it's so bad it'll probably be straightforward to fix.
Don't we have tests for that? (And if we do, why aren't they failing...?)
Consider this program:
I run this in CPO without the type-checker on.
The third test has an error. If I then type
list-to-set
in the REPL, I getThe reference to
Key
is really weird. If instead I put the same name in the definitions and click Run, I get a conventional unbound identifier error.