using float/int sumtype cast results in C error #14428
Labels
Bug
This tag is applied to issues which reports bugs.
Status: Confirmed
This bug has been confirmed to be valid by a contributor.
writing a bug report due to an issue posted in the discord. message link
What did you do?
a.v
v run a.v
What did you expect to see?
10.
in the consoleWhat did you see instead?
which is the C representation of the function:
VS Code squiggles this cast, so i suspect this to be a cgen error. using a non-anonymous sumtype results in the same error and C code.
V version:
V 0.2.4 bc397bb
OS: Arch Linux 5.16.16-arch-1
Compiler used: tcc
The text was updated successfully, but these errors were encountered: