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

Commit 9a49eed

Browse files
committed
add test
1 parent d463e90 commit 9a49eed

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ module V4C = {
66
y: 'y,
77
}
88

9-
@react.component(shareProps) let make = ({x, y, _}: props<'x, 'y>) => React.string(x ++ y)
9+
@react.component(type sharedProps<'a>)
10+
let make = ({x, y, _}: props<'x, 'y>) => React.string(x ++ y)
1011
let make = {
1112
let \"SharedProps$V4C" = (props: props<_>) => make(props)
1213

@@ -22,7 +23,8 @@ module V4A = {
2223
y: 'y,
2324
}
2425

25-
@react.component(shareProps) let make = ({x, y, _}: props<'x, 'y>) => React.string(x ++ y)
26+
@react.component(type sharedProps<'a>)
27+
let make = ({x, y, _}: props<'x, 'y>) => React.string(x ++ y)
2628
let make = {
2729
let \"SharedProps$V4A" = (props: props<_>) => make(props)
2830

tests/ppx/react/sharedProps.res

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
@@jsxConfig({version:4, mode: "classic"})
22

33
module V4C = {
4-
@react.component(shareProps)
4+
@react.component(type sharedProps<'a>)
55
let make = (~x, ~y) => React.string(x ++ y)
66
}
77

88
@@jsxConfig({version:4, mode: "automatic"})
99

1010
module V4A = {
11-
@react.component(shareProps)
11+
@react.component(type sharedProps<'a>)
1212
let make = (~x, ~y) => React.string(x ++ y)
1313
}

0 commit comments

Comments
 (0)