Closed rolandpeelen closed 4 years ago
Actually;
When I change it to a named parameter, it compiles;
let make = (~segments: array(segment)) => {
I suspect this has something to do with the [@react.component]
decorator expecting named parameters. As when I remove that and the ~
, it compiles as well.
The error message isn't particularly clear though.
Hi!
I ran into some strange behaviour earlier today. Given the following type definition:
And the following component:
When I change:
to
I get the following error:
Version:
BuckleScript 7.3.2 ( Using OCaml:4.06.1+BS )