We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
First of all, amazing work on the 10.1 release. Lots of great stuff.
Thank you for filing! Check list:
the following compiles:
@@jsxConfig({ version: 3 }) let func = (~callback: (. string, bool, bool) => unit=(. _, _, _) => (), ()) => (); func(~callback=(. str, a, b) => (), ()) module Foo = { @react.component let make = ( ~callback: (. string, bool, bool) => unit=(. _, _, _) => (), ) => { React.null } } module Bar = { @react.component let make = () => <Foo callback={(. _, _, _) => ()} /> }
But changing to @@jsxConfig({ version: 4 }) gives the following error:
@@jsxConfig({ version: 4 })
[E] Line 10, column 46: This has type: (. 'a, 'b, 'c) => unit Somewhere wanted: (string, bool, bool) => unit
example
The text was updated successfully, but these errors were encountered:
Here is the simplified example to reproduce:
@@jsxConfig({ version: 4 }) @react.component let make = (~a: (. unit) => unit=(. ) => ()) => React.null
Sorry, something went wrong.
[E] Line 4, column 33: This has type: (. ()) => unit Somewhere wanted: unit => unit
This is fixed in the master.
rescript-lang/syntax#731 would fix this issue for v10
mununki
Successfully merging a pull request may close this issue.
First of all, amazing work on the 10.1 release. Lots of great stuff.
Thank you for filing! Check list:
the following compiles:
But changing to
@@jsxConfig({ version: 4 })
gives the following error:example
The text was updated successfully, but these errors were encountered: