Skip to content

Commit 61408d5

Browse files
committed
tweak example file
1 parent e12db8d commit 61408d5

File tree

2 files changed

+13
-7
lines changed

2 files changed

+13
-7
lines changed

analysis/tests/src/Parser.res

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,8 @@ module T = {
6767

6868
let foo = x => x.T.someField
6969

70-
let add = (~hello, ~world) => hello + world
70+
let add = (~hello as x, ~world) => x + world
71+
72+
let _ = add(~hello=3)
73+
74+
let _ = <div scale="abc" />

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

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Parse tests/src/Parser.res
2-
structure items:18 diagnostics:0
2+
structure items:20 diagnostics:0
33
Lident: M (0,7) Namespace
44
Lident: C (1,9) Namespace
55
Lident: Component (1,13) Namespace
@@ -68,10 +68,12 @@ Lident: someField (67,19) Property
6868
Lident: x (67,15) Variable
6969
Variable: x (67,10)->(67,11)
7070
Variable: foo (67,4)->(67,7)
71-
BinaryExp: (69,36)->(69,37)
72-
Lident: hello (69,30) Variable
73-
Lident: world (69,38) Variable
74-
Variable: world (69,19)->(69,25)
75-
Variable: hello (69,11)->(69,17)
71+
BinaryExp: (69,37)->(69,38)
72+
Lident: x (69,35) Variable
73+
Lident: world (69,39) Variable
74+
Variable: world (69,24)->(69,30)
75+
Variable: x (69,21)->(69,22)
7676
Variable: add (69,4)->(69,7)
77+
Lident: add (71,8) Variable
78+
Lident: div (73,9) JsxTag
7779

0 commit comments

Comments
 (0)