Simple, fast, safe, compiled language for developing maintainable software. Compiles itself in <1s with zero library dependencies. Supports automatic C => V translation. https://vlang.io
MIT License
35.51k
stars
2.15k
forks
source link
using float/int sumtype cast results in C error #14428
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