Compiler bug: math operation with number|string|any with a function that return void causes C error instead of type error #23976
Labels
Bug
This tag is applied to issues which reports bugs.
Status: Confirmed
This bug has been confirmed to be valid by a contributor.
Unit: Checker
Bugs/feature requests, that are related to the type checker.
V version: V 0.4.9 87b1de8, press to see full `v doctor` output
What did you do?
./v -g -o vdbg cmd/v && ./vdbg src/main.v && src/main
What did you see?
What did you expect to see?
compiler: mismatched types
int literal
andvoid
notes:
this also gets an error, so its not only bultin functions, or ints.
You get a correct error when puttinf the function before 1 like
give the correct error
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: