Skip to content

Commit 4765162

Browse files
committed
fix CI
1 parent 69eca55 commit 4765162

16 files changed

+65
-64
lines changed

jscomp/test/config2_test.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44

55
class type v = object
66
method hey : int -> int -> int
7-
end [@bs]
7+
end
88

99
class type v2 = object
1010
method hey : int -> int -> int
11-
end [@bs]
11+
end
1212

1313
type vv =
1414
<

jscomp/test/config2_test.mli

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
class type v = object
44
method hey : int -> int -> int
5-
end [@bs]
5+
end
66

77
class type v2 = object
88
method hey : int -> int -> int
9-
end [@bs]
9+
end
1010

1111
type vv =
1212
<

jscomp/test/demo_binding.ml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,51 +2,51 @@
22
class type titlex =
33
object
44
method title : string [@@bs.set] [@@bs.get {null ; undefined}]
5-
end[@bs]
5+
end
66

77
class type widget =
88
object
99
method on : string -> (event -> unit [@bs]) -> unit
10-
end[@bs]
10+
end
1111
and event =
1212
object
1313
method source : widget
1414
method target : widget
15-
end[@bs]
15+
end
1616

1717

1818
class type title =
1919
object
2020
method title : string [@@bs.set]
21-
end[@bs]
21+
end
2222

2323
class type text =
2424
object
2525
method text : string [@@set]
26-
end[@bs]
26+
end
2727

2828
class type measure =
2929
object
3030
method minHeight : int [@@set]
3131
method minWidth : int [@@bs.set]
3232
method maxHeight : int [@@bs.set]
3333
method maxWidth : int [@@bs.set]
34-
end[@bs]
34+
end
3535

3636
class type layout =
3737
object
3838
method orientation : string [@@bs.set]
39-
end[@bs]
39+
end
4040

4141
class type applicationContext =
4242
object
4343
method exit : int -> unit
44-
end[@bs]
44+
end
4545
class type contentable =
4646
object
4747
method content : #widget [@@bs.set]
4848
method contentWidth : int [@@bs.set]
49-
end[@bs]
49+
end
5050

5151
class type hostedWindow =
5252
object
@@ -57,13 +57,13 @@ class type hostedWindow =
5757
method hide : unit -> unit
5858
method focus : unit -> unit
5959
method appContext : applicationContext [@@bs.set]
60-
end[@bs]
60+
end
6161

6262
class type hostedContent =
6363
object
6464
inherit widget
6565
inherit contentable
66-
end[@bs]
66+
end
6767

6868

6969
class type stackPanel =
@@ -74,7 +74,7 @@ class type stackPanel =
7474

7575
method addChild : #widget -> unit
7676

77-
end[@bs]
77+
end
7878

7979
class type grid =
8080
object
@@ -85,22 +85,22 @@ class type grid =
8585
<label : <text : string; .. > ; ..> array [@@bs.set]
8686
method dataSource :
8787
<label : <text : string; .. > ; ..> array array [@@bs.set]
88-
end[@bs]
88+
end
8989

9090

9191
class type button =
9292
object
9393
inherit widget
9494
inherit text
9595
inherit measure
96-
end[@bs]
96+
end
9797

9898
class type textArea =
9999
object
100100
inherit widget
101101
inherit measure
102102
inherit text
103-
end[@bs]
103+
end
104104

105105

106106
external set_interval : (unit -> unit [@bs]) -> float -> unit = "setInterval"

jscomp/test/gpr_1600_test.ml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,25 +9,25 @@ let obj : < hi : (int * int -> unit [@bs.meth]) > = object
99
end [@bs]
1010
(** expect *)
1111

12-
class type _a = object
12+
class type a = object
1313
method empty : unit -> unit
1414
method currentEvents : unit -> (string * string) array
1515
method push : string * string -> unit
1616
method needRebuild : unit -> bool
17-
end [@bs]
17+
end
18+
1819

19-
type a = _a
2020

2121
let eventObj : < currentEvents : (unit -> (string * string) array [@bs.meth]);
2222
empty : (unit -> unit [@bs.meth]);
2323
needRebuild : (unit -> bool [@bs.meth]);
2424
push : (string * string -> unit [@bs.meth]) >
25-
= object (self)
25+
= object [@bs](self)
2626
val events : (string * string) array = [||]
2727
method empty () = ()
2828
method push a = Array.unsafe_set self##events 0 a
2929
method needRebuild () = Array.length self##events <> 0
3030
method currentEvents () = self##events
31-
end [@bs]
31+
end
3232

3333
let f () = (eventObj : a)

jscomp/test/http_types.ml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,17 @@ class type _resp =
1919
method statusCode : int [@@bs.set]
2020
method setHeader : string -> string -> unit
2121
method _end : string -> unit
22-
end[@bs]
22+
end
2323
type resp = _resp
2424
class type _server =
2525
object
2626
method listen : int -> string -> (unit -> unit [@bs]) -> unit
27-
end[@bs]
27+
end
2828
type server = _server
2929
class type _http =
3030
object
3131
method createServer : (req -> resp -> unit [@bs]) -> server
32-
end[@bs]
32+
end
3333
type http = _http
3434

3535

jscomp/test/local_class_type.ml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11

22

33

4-
class type _u = object
4+
class type u = object
55
method height : int [@@bs.set]
6-
end[@bs]
6+
end
7+
78

8-
type u = _u
99

1010
let f (x : u) =
1111
x##height #= 3

jscomp/test/poly_type.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
class type history = object
55
method pushState : 'a . 'a -> string -> unit
6-
end [@bs]
6+
end
77

88
let f (x : history ) =
99
x##pushState 3 "x";

jscomp/test/promise.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ let f p =
77
catch p 3
88

99
class type ['b] promise =
10-
object [@bs]
10+
object
1111
method _then : 'a -> 'b promise
1212
method catch : 'a -> 'b
1313
end

jscomp/test/test_bs_this.ml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ let js_obj : 'self =
2424

2525
}
2626
]
27-
class type _x = object [@bs]
28-
method onload : _x -> unit [@this] [@@bs.set]
29-
method addEventListener : string -> (_x -> unit [@bs.this]) -> unit
27+
class type x = object
28+
method onload : x -> unit [@this] [@@bs.set]
29+
method addEventListener : string -> (x -> unit [@bs.this]) -> unit
3030
method response : string
3131
end
32-
type x = _x
32+
3333

3434
let f (x : x ) =
3535
begin

jscomp/test/test_index.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
class type ['a] case = object
44
method case : int -> 'a
55
method case__set : int -> 'a -> unit
6-
end[@bs]
6+
end
77

88

99

0 commit comments

Comments
 (0)