You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
…24237 )
This commit fixes a bug in the JavaScript code generator
where array types in sum type match expressions were not
being properly checked. The issue was that the generated
code was checking if array elements were instances of the
array type itself, rather than the element type of the array.
…24237 )
This commit fixes a bug in the JavaScript code generator where array types in sum type match expressions were not being properly checked. The issue was that the generated code was checking if array elements were instances of the array type itself, rather than the element type of the array.
Describe the bug
When compiling this code using
v -b js_browser .
:throws the following error:
Reproduction Steps
As above.
Expected Behavior
The sum types should work well with array types.
Current Behavior
It throws a JavaScript error.
Possible Solution
No response
Additional Information/Context
No response
V version
V 0.4.10 d559a62
Environment details (OS name and version, etc.)
Note
You can use the 👍 reaction to increase the issue's priority for developers.
Please note that only the 👍 reaction to the issue itself counts as a vote.
Other reactions and those to comments will not be taken into account.
The text was updated successfully, but these errors were encountered: