Skip to content
Snippets Groups Projects
Commit 849b9161 authored by Julien Lopez's avatar Julien Lopez
Browse files

Type can be in parentheses

parent 45855784
No related branches found
No related tags found
No related merge requests found
......@@ -746,6 +746,10 @@ public class Parser {
res = RecordType();
} else if (la.kind == 39) {
res = ListType();
} else if (la.kind == 18) {
Get();
res = Type();
Expect(20);
} else SynErr(62);
return res;
}
......
......@@ -193,6 +193,7 @@ NonFunctionType<out QIRType res> = (. res = null; .)
ConstantType<out res>
| RecordType<out res>
| ListType<out res>
| "(" Type<out res> ")"
)
.
......
(fun : { x:int ; y:list[string] } x -> x) @ [ { x = 2; y = 3 + 4 } : { x : int; y : int }; [ "toto" ] : list[string]; (fun : int -> int x -> x + 2) ]
(fun : { x:int ; y:list[string] } x -> x) @ [ { x = 2; y = 3 + 4 } : { x : int; y : int }; [ "toto" ] : list[string]; (fun : int -> (int -> int) -> int x -> x + 2) ]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment