Skip to content

Commit 49ce244

Browse files
committed
Add jsx example of variant assigned with/out braces.
See #213
1 parent 75b4e3b commit 49ce244

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

analysis/tests/src/Jsx.res

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,7 @@ let _ = <M first="abc" />
1515
@react.component
1616
let make = (~first) => React.string(first)
1717

18-
let y = 44
18+
let y = 44
19+
20+
//^com <M prop={A(3)} k
21+
//^com <M prop=A(3) k

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,3 +70,15 @@ Complete tests/src/Jsx.res 11:2
7070
"documentation": null
7171
}]
7272

73+
Complete tests/src/Jsx.res 18:2
74+
[{
75+
"label": "key",
76+
"kind": 4,
77+
"tags": [],
78+
"detail": "string",
79+
"documentation": null
80+
}]
81+
82+
Complete tests/src/Jsx.res 19:2
83+
[]
84+

0 commit comments

Comments
 (0)