Skip to content

Commit c0efaa6

Browse files
committed
Syntax: udpate test expectations
1 parent 54e56d7 commit c0efaa6

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

tests/camlp4/meth.expected

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Characters 40-43:
33
fun (obj : int) -> obj##m();;
44
^^^
55
Error: This expression has type int but an expression was expected of type
6-
'a Js.t
6+
'jsoo_173316d7 Js.t
77
Characters 25-28:
88
fun (obj : < > Js.t) -> obj##m();;
99
^^^
@@ -14,7 +14,7 @@ Characters 43-49:
1414
^^^^^^
1515
Error: This expression has type
1616
float Js.prop = < get : float; set : float -> unit > Js.gen_prop
17-
but an expression was expected of type 'a Js.meth
17+
but an expression was expected of type 'jsoo_22f22ba7 Js.meth
1818
Characters 43-51:
1919
fun (obj : < m : float Js.meth > Js.t) -> obj##m() + 1;;
2020
^^^^^^^^
@@ -24,12 +24,13 @@ Characters 48-54:
2424
fun (obj : < m : int -> int Js.meth > Js.t) -> obj##m() + 1;;
2525
^^^^^^
2626
Error: This expression has type int -> int Js.meth
27-
but an expression was expected of type 'a Js.meth
27+
but an expression was expected of type 'jsoo_32f94eb9 Js.meth
2828
Characters 41-47:
2929
fun (obj : < m : int Js.meth > Js.t) -> obj##m(1);;
3030
^^^^^^
3131
Error: This expression has type int Js.meth
32-
but an expression was expected of type 'a -> 'b Js.meth
32+
but an expression was expected of type
33+
'jsoo_776737d4 -> 'jsoo_593685be Js.meth
3334
Characters 50-59:
3435
fun (obj : < m : int -> float Js.meth > Js.t) -> obj##m(1) + 1;;
3536
^^^^^^^^^

tests/camlp4/prop.expected

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Characters 45-48:
33
fun (obj : int) -> obj##p;;
44
^^^
55
Error: This expression has type int but an expression was expected of type
6-
'a Js.t
6+
'jsoo_32b5ee21 Js.t
77
Characters 25-28:
88
fun (obj : < > Js.t) -> obj##p;;
99
^^^
@@ -14,7 +14,8 @@ Characters 53-59:
1414
^^^^^^
1515
Error: This expression has type
1616
float Js.writeonly_prop = < set : float -> unit > Js.gen_prop
17-
but an expression was expected of type < get : 'a; .. > Js.gen_prop
17+
but an expression was expected of type
18+
< get : 'jsoo_res; .. > Js.gen_prop
1819
The first object type has no method get
1920
Characters 43-49:
2021
fun (obj : < p : float Js.prop > Js.t) -> obj##p + 1;;

tests/camlp4/write_prop.expected

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Characters 45-48:
33
fun (obj : int) -> obj##p <- 2;;
44
^^^
55
Error: This expression has type int but an expression was expected of type
6-
'a Js.t
6+
'jsoo_32b5ee21 Js.t
77
Characters 25-28:
88
fun (obj : < > Js.t) -> obj##p <- 2;;
99
^^^
@@ -15,7 +15,7 @@ Characters 52-58:
1515
Error: This expression has type
1616
float Js.readonly_prop = < get : float > Js.gen_prop
1717
but an expression was expected of type
18-
< set : 'a -> unit; .. > Js.gen_prop
18+
< set : 'jsoo_arg -> unit; .. > Js.gen_prop
1919
The first object type has no method set
2020
Characters 53-54:
2121
fun (obj : < p : float Js.prop > Js.t) -> obj##p <- 1;;

0 commit comments

Comments
 (0)