-
Notifications
You must be signed in to change notification settings - Fork 382
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Top-level lazy functions don't typecheck #1066
Comments
Note that |
That is true. In this case, changing |
@gallais Can you elaborate? I was recently testing
I was also confused by
|
👍 for this issue. |
Avoid this feature. Use a normal function or something. |
When we encounter a delayed (explicit) function type during elaboration of a LHS, we strip off the delay modality, continue elaboration and return a delayed version of the resulting type. Note: defining delayed function via pattern matching is not currently supported. Doing so will require adding a delay marker to LHSs/contexts familiar from modal type theories. Implicit function are also currently not supported.
Steps to Reproduce
Make a top-level declaration with a lazy type that can't be inferred:
Expected Behavior
They should type check fine.
Observed Behavior
The text was updated successfully, but these errors were encountered: