@@ -17,7 +17,7 @@ module Dep: {
17
17
// ^com
18
18
19
19
module Lib = {
20
- let foo = (~age , ~name ) => name ++ string_of_int (age )
20
+ let foo = (~age , ~name ) => name ++ Int . toString (age )
21
21
let next = (~number = 0 , ~year ) => number + year
22
22
}
23
23
@@ -51,7 +51,7 @@ let fa: ForAuto.t = 34
51
51
module O = {
52
52
module Comp = {
53
53
@react.component
54
- let make = (~first = "" , ~zoo = 3 , ~second ) => React .string (first ++ second ++ string_of_int (zoo ))
54
+ let make = (~first = "" , ~zoo = 3 , ~second ) => React .string (first ++ second ++ Int . toString (zoo ))
55
55
}
56
56
}
57
57
@@ -96,18 +96,18 @@ let nestedObj = {"x": {"y": {"name": "a", "age": 32}}}
96
96
// nestedObj["x"]["y"]["
97
97
// ^com
98
98
99
- let o : Objects .objT = assert false
99
+ let o : Objects .objT = assert ( false )
100
100
// o["a
101
101
// ^com
102
102
103
103
type nestedObjT = {"x" : Objects .nestedObjT }
104
- let no : nestedObjT = assert false
104
+ let no : nestedObjT = assert ( false )
105
105
// no["x"]["y"]["
106
106
// ^com
107
107
108
108
type r = {x : int , y : string }
109
109
type rAlias = r
110
- let r : rAlias = assert false
110
+ let r : rAlias = assert ( false )
111
111
// r.
112
112
// ^com
113
113
@@ -136,7 +136,7 @@ let foo = {
136
136
| 3 => a + b
137
137
| _ => 42
138
138
}
139
- let z = assert false
139
+ let z = assert ( false )
140
140
let _ = z
141
141
module Inner = {
142
142
type z = int
@@ -154,7 +154,7 @@ exception MyOtherException
154
154
155
155
type aa = {x : int , name : string }
156
156
type bb = {aa : aa , w : int }
157
- let q : bb = assert false
157
+ let q : bb = assert ( false )
158
158
// q.aa.
159
159
// ^com
160
160
// q.aa.n
@@ -212,7 +212,7 @@ let _ = shadowed
212
212
213
213
module FAR = {
214
214
type forAutoRecord = {forAuto : ForAuto .t , something : option <int >}
215
- let forAutoRecord : forAutoRecord = assert false
215
+ let forAutoRecord : forAutoRecord = assert ( false )
216
216
}
217
217
218
218
module FAO = {
@@ -287,7 +287,7 @@ type funRecord = {
287
287
stuff : string ,
288
288
}
289
289
290
- let funRecord : funRecord = assert false
290
+ let funRecord : funRecord = assert ( false )
291
291
292
292
// let _ = funRecord.someFun(~ )
293
293
// ^com
@@ -319,7 +319,10 @@ let ff = (~opt1=0, ~a, ~b, (), ~opt2=0, (), ~c) => a + b + c + opt1 + opt2
319
319
320
320
type callback = (~a : int ) => int
321
321
322
- let withCallback : (~b : int ) => callback = (~b ) => { (); (~a ) => a + b }
322
+ let withCallback : (~b : int ) => callback = (~b ) => {
323
+ ()
324
+ (~a ) => a + b
325
+ }
323
326
324
327
// withCallback(~
325
328
// ^com
@@ -451,17 +454,15 @@ type someVariantWithDeprecated =
451
454
// let v: someVariantWithDeprecated =
452
455
// ^com
453
456
454
- let uncurried = (. num ) => num + 2
457
+ let uncurried = num => num + 2
455
458
456
459
// let _ = uncurried(. 1)->toS
457
460
// ^com
458
461
459
- type withUncurried = {
460
- fn : (. int ) => unit
461
- }
462
+ type withUncurried = {fn : int => unit }
462
463
463
464
// let f: withUncurried = {fn: }
464
465
// ^com
465
466
466
467
// let someRecord = { FAR. }
467
- // ^com
468
+ // ^com
0 commit comments