unison icon indicating copy to clipboard operation
unison copied to clipboard

UnknownExistentialVariable compiler bug triggered by delaying a higher-rank function

Open pchiusano opened this issue 4 years ago • 0 comments

Self-contained example:

f : (forall a . a -> a) -> Nat
f id = id 0

x = 'f

Results in:

UnknownExistentialVariable:
  unsolved

Seems like any higher rank function will do it. (Like try x = ‘Scope.run)

Not sure the urgency on this but it does make it impossible to link to higher rank functions in the docs. I’m hoping it’s just something easy to fix.

pchiusano avatar Aug 26 '21 06:08 pchiusano