-
-
Notifications
You must be signed in to change notification settings - Fork 22
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
Function definition with type variables not recognized as a function #270
Comments
I don't understand the syntax nor the expectation |
This example is more correct (though still lacking some of the referenced types):
Defines the function The following function definitions are exactly equivalent. The latter gives the type explicitly rather than having the compiler infer its type:
The type notation is similar to what you see in a Does that make sense? Any further questions? |
Thanks, it's clear |
fixed in 0.93 |
Looks good, thanks. |
plugin version: 0.92-2020.2
Note the "V" in the structure panel.
type s tr r.
defines 3 type variables that are used in the following list of arguments.let rec parser_of_tree : type s tr r. s ty_entry -> int -> int -> (s, tr, r) ty_tree -> r parser_t =
()
The text was updated successfully, but these errors were encountered: