Shulhi Sapli
Shulhi Sapli
@mgwidmann I can definitely help with this once you have the time to review #86 and then I can work on top of that PR.
This is not exclusive to React. ```rescript let k = (block: block_like) => { let _ = switch block { | BlockHeading => () | BlockImage => () // Error...
> Is this an issue you can reproduce in v11? I'll report back with v11. > ```rescript > @react.component > let make = (type a, ~block: text_like) => { >...
Sorry for the late update, I've tested recently with the latest version of rescript (v11-rc5) and this is still happening.
This is similar to https://github.com/rescript-lang/rescript-compiler/issues/6638
> And this even more! > > let \"🎉" = 42 > https://rescript-lang.org/try?version=v12.0.0-alpha.10&module=esmodule&code=DYUwLgBAOgRIPBuEj9mEC8EAsAmAUEA Should we even allow this?
> #7024 just reminded me of this one. @shulhi do you think we should add this one to #6995 to investigate (even though it is not strictly speaking a bug)?...
> > a module can't be named Js or something (since we already have Js module). > > Can't we...? If I have a module named `Map` inside a module...
This is fixed in V12.
> Coercion for records also break this assumption (more fields can be on the object than what's represented by the record). > > Honestly I think these are just quirks...