Closed ranjitjhala closed 5 months ago
The problem seems to be that the type parameter of return
is not properly instantiated, no?
I do not recall exactly why we need all these stuff in makeSingleton
. Did you try removing them and see what fails?
I cannot reproduce in the latest LH.
This simple code
fails with the rather horrific error
I am surprised that there is a refinement somewhere with
return ()
inside it.I believe this has to do with the
makeSingleton
and the fact that it makes singleton types for function-applications -- clearly its (a) doing the wrong thing here? or (b) should not be used here and thehigherOrder
flag should only be applied to functions who are being reflected and not everywhere?^^ @nikivazou do you know what the above code is for? Why do we do all this extra stuff for function applications in
makeSingleton
?