-
Notifications
You must be signed in to change notification settings - Fork 465
variant to record #4307
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
Comments
Will this also cover polymorphic variants? Specifically, I'm trying to bind to some complex JS components that need them: module Column = {
[@bs.deriving abstract]
type props = {
[@bs.optional]
align: [@bs.string] [ | `left | `right | `center],
};
}
} But align: [@bs.string] [ | `left | `right | `center] doesn't work, which means writing a bunch of wrappers back and forth. Compiling flat polymorphic variants to strings (and respecting |
done in master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Obj.new_block, Obj.field, Obj.set_field, Obj.size, Obj.truncate
For ocaml objects, it is so dynamic that we have to compile it into array,
_n
indexing won't work since its size is created dynamically, we have to make sure for such field access is also compiled into array accessThe text was updated successfully, but these errors were encountered: