File tree 4 files changed +18
-2
lines changed
tests/parsing/grammar/expressions
4 files changed +18
-2
lines changed Original file line number Diff line number Diff line change 12
12
13
13
# 12.0.0-alpha.4 (Unreleased)
14
14
15
+ #### :bug : Bug fix
16
+ - Fix tuple coercion. https://github.com/rescript-lang/rescript-compiler/pull/7024
17
+
15
18
# 12.0.0-alpha.3
16
19
17
20
#### :bug : Bug fix
Original file line number Diff line number Diff line change @@ -1823,6 +1823,7 @@ and parse_constrained_expr_region p =
1823
1823
| token when Grammar. is_expr_start token -> (
1824
1824
let expr = parse_expr p in
1825
1825
match p.Parser. token with
1826
+ | ColonGreaterThan -> Some (parse_coerced_expr ~expr p)
1826
1827
| Colon ->
1827
1828
Parser. next p;
1828
1829
let typ = parse_typ_expr p in
Original file line number Diff line number Diff line change 1
1
let foo = (x :int ) => (x :> int )
2
2
3
- let foo = x => (x : t :> int )
3
+ let foo = x => (x : t :> int )
4
+
5
+ let _ = (x : int )
6
+
7
+ let foo = (x : int , y :> float )
8
+
9
+ let foo = (x : int , y :> float , z :> int )
10
+
11
+ let foo = (x : int , y , z :> int )
Original file line number Diff line number Diff line change 1
1
let foo = ((Function$ (fun (x : int) -> (x :> int)))[@res.arity 1])
2
- let foo = ((Function$ (fun x -> ((x : t) :> int)))[@res.arity 1])
2
+ let foo = ((Function$ (fun x -> ((x : t) :> int)))[@res.arity 1])
3
+ let _ = (x : int)
4
+ let foo = ((x : int), (y :> float))
5
+ let foo = ((x : int), (y :> float), (z :> int))
6
+ let foo = ((x : int), y, (z :> int))
You can’t perform that action at this time.
0 commit comments