Skip to content
This repository was archived by the owner on Jun 15, 2023. It is now read-only.

Commit 913aa08

Browse files
committed
add test
1 parent 2ed49ea commit 913aa08

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

tests/ppx/react/expected/v4.res.txt

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,20 @@ module AnotherName = {
1616
\"V4$AnotherName$anotherName"
1717
}
1818
}
19+
20+
module Rec = {
21+
type props = {}
22+
23+
let rec make = {
24+
@merlin.focus
25+
let rec \"make$Internal" = (_: props) => {
26+
make(({}: props))
27+
}
28+
and make = {
29+
let \"V4$Rec" = props => make(props)
30+
31+
\"V4$Rec"
32+
}
33+
make
34+
}
35+
}

tests/ppx/react/v4.res

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,10 @@ module AnotherName = {
77
@react.component
88
let anotherName = (~x) => React.string(x)
99
}
10+
11+
module Rec = {
12+
@react.component
13+
let rec make = () => {
14+
make({}:props)
15+
}
16+
}

0 commit comments

Comments
 (0)