-
Notifications
You must be signed in to change notification settings - Fork 463
New issue
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
Incorrect polymorphic variant -> string conversion #1072
Comments
@yawaramin about |
|
the reason why we disable the combination of
|
think twice, I think we can achieve this by changing the algorithm of how to synthesize the output type |
fixed in master, so you can use bs.string with bs.obj now |
Currently not working; seems to be same issue as rescript-lang/rescript#1072 .
Hi Bob, the problem seems to persist even after upgrading to 1.4.1. I am declaring a Calling the And getting the same kind of numeric output as before: https://github.com/yawaramin/bucklescript-cyclejs-test/blob/f8074409794bb0d8d3952ef8d5fa857add7ce692/lib/js/src/comment.js#L21 This time no warnings about any unused |
Hi, can you double check the version? It's fixed in master, 1.4.2, but I did not make a release yet, due to some bugs on windows |
Oh! I misunderstood. Will wait for the release and check again then :-) |
Input
Output
Expected Output
flavour: "vanilla"
Further Comments
Also,
ice_cream
named parameternum_scoops
got converted into output object keynum
. This may be out of scope for this issue.Finally, if we make
flavour
non-optional, we get an errorLine 1, 0: bs.obj label flavour does not support such arg type
.The text was updated successfully, but these errors were encountered: