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
returning 123 is probably not what we want here because of the way nimvm works. However it should give error:
Error: expression '123' is of type 'int literal(123)' and has to be discarded
just like it would with if false instead of when nimvm
when nimvm
accepts invalid code (implicit discard causing bugs) or silently gives wrong results (example 2) and other errors.Example
Current Output
Expected Output
returning 123 is probably not what we want here because of the way nimvm works. However it should give error:
Error: expression '123' is of type 'int literal(123)' and has to be discarded
just like it would with
if false
instead ofwhen nimvm
Example 2
Example 3
this example is a different bug, it gives:
Error: redefinition of 'y'
Additional Information
The text was updated successfully, but these errors were encountered: