Skip to content

Commit b3731b1

Browse files
committed
Syntax: small update
1 parent c0efaa6 commit b3731b1

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

lib/syntax/pa_js.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ module Make (Syntax : Sig.Camlp4Syntax) = struct
115115
_loc e_loc (e:string) v_loc (v:string) v_typ m_loc m m_typ args =
116116
let typ_var = fresh_type e_loc in
117117
let cstr =
118-
let _loc = e_loc in <:expr<(($lid:e$ : $js_t_id _loc "t"$ $typ_var$) : $js_t_id _loc "t"$ < .. > )>> in
118+
let _loc = e_loc in <:expr<(($lid:e$ : $js_t_id _loc "t"$ < .. >) : $js_t_id _loc "t"$ $typ_var$)>> in
119119
let x = let _loc = e_loc in <:expr<x>> in
120120
let body =
121121
let _loc = Syntax.Loc.merge e_loc m_loc in

tests/camlp4/meth.expected

Lines changed: 1 addition & 1 deletion
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-
'jsoo_173316d7 Js.t
6+
< .. > Js.t
77
Characters 25-28:
88
fun (obj : < > Js.t) -> obj##m();;
99
^^^

tests/camlp4/prop.expected

Lines changed: 1 addition & 1 deletion
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-
'jsoo_32b5ee21 Js.t
6+
< .. > Js.t
77
Characters 25-28:
88
fun (obj : < > Js.t) -> obj##p;;
99
^^^

tests/camlp4/write_prop.expected

Lines changed: 1 addition & 1 deletion
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-
'jsoo_32b5ee21 Js.t
6+
< .. > Js.t
77
Characters 25-28:
88
fun (obj : < > Js.t) -> obj##p <- 2;;
99
^^^

0 commit comments

Comments
 (0)