We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Allow type annotations in patterns. Examples:
val x: int = 1; val p: int * bool = (2, true); val f (x: int) = x + 1; val g (e: {name: string, deptno: int}) = e.name;
Also in expressions:
1: int; (2, true): int * bool; []: int list; (1: int) + (2: int); String.size ("abc": string): int;
And also in function declarations:
fun hello (name: string, code: int): string = "hello!"; fun firstOrSecond (e1 :: e2 :: rest): int = e2 | firstOrSecond (e1 :: rest) = e1;
The text was updated successfully, but these errors were encountered:
expressions with type annotations
d1a7096
Fixes hydromatic#138
95e81ed
[MOREL-138] Type annotations in patterns, function declarations and e…
a7194e4
…xpressions Fixes hydromatic#138
When branches are created from issues, their pull requests are automatically linked.
Allow type annotations in patterns. Examples:
Also in expressions:
And also in function declarations:
The text was updated successfully, but these errors were encountered: