Closed
Description
Repro, in v11 with uncurrying enabled:
module A = {
@react.component
let make = (type a, ~foo=?) => React.null
}
<A />
yields the error:
[E] Line 6, column 1:
This has type: A.props => (~foo: 'a=?) => React.element
But this function argument is expecting:
React.component<A.props> (defined as A.props => Jsx.element)
The incompatible parts:
(~foo: 'a=?) => React.element vs Jsx.element (defined as JsxU.element)
This works both in v10, and v11 with uncurrying disabled.
Metadata
Metadata
Assignees
Labels
No labels