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
The following generates a clone unexpectedly:
function f(null|int x) -> (int r): if x is int: return x else: return 0
This generates the following JavaScript:
function f_u2NI(/*(null|int)*/ x)// -> (/*int*/ r) { // function or method body if(typeof x === "number") { return Wy.copy(x); } else { return 0; } }
Obviously, it's strange that we have Wy.copy(x) here. I'm guessing the reason for this is that isCopyable() doesn't think about union types properly.
Wy.copy(x)
isCopyable()
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The following generates a clone unexpectedly:
This generates the following JavaScript:
Obviously, it's strange that we have
Wy.copy(x)
here. I'm guessing the reason for this is thatisCopyable()
doesn't think about union types properly.The text was updated successfully, but these errors were encountered: