Skip to content

Commit a146d5d

Browse files
committed
Remove warnings from tests.
1 parent adef69e commit a146d5d

File tree

3 files changed

+6
-14
lines changed

3 files changed

+6
-14
lines changed

analysis/tests/src/InlayHint.res

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ type foo = {
2424
}
2525

2626
let bar = () => ({name: "ReScript", age: 2}, tuple)
27-
let ({name, age}, t) = bar()
27+
let ({name:_, age:_}, t) = bar()
2828

2929
let alice = {
3030
name: "Alice",

analysis/tests/src/Jsx2.res

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,3 +168,7 @@ let _ = {
168168
<> {<> <Comp age=34 /> </>} </>
169169
// ^hov
170170
}
171+
172+
module type ExtT = module type of Ext
173+
174+
let _ = module(Ext: ExtT)

analysis/tests/src/expected/InlayHint.res.txt

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,23 +18,11 @@ Inlay Hint src/InlayHint.res 1:34
1818
"paddingLeft": true,
1919
"paddingRight": false
2020
}, {
21-
"position": {"line": 26, "character": 19},
21+
"position": {"line": 26, "character": 23},
2222
"label": ": (string, string)",
2323
"kind": 1,
2424
"paddingLeft": true,
2525
"paddingRight": false
26-
}, {
27-
"position": {"line": 26, "character": 15},
28-
"label": ": int",
29-
"kind": 1,
30-
"paddingLeft": true,
31-
"paddingRight": false
32-
}, {
33-
"position": {"line": 26, "character": 10},
34-
"label": ": string",
35-
"kind": 1,
36-
"paddingLeft": true,
37-
"paddingRight": false
3826
}, {
3927
"position": {"line": 18, "character": 9},
4028
"label": ": string",

0 commit comments

Comments
 (0)