unchecked error handling for empty or blocks used in string interpolation x := "${ f() or {} }"
#21176
Labels
Bug
This tag is applied to issues which reports bugs.
Result Type
Bugs/feature requests, that are related to `!Type`.
Unit: Checker
Bugs/feature requests, that are related to the type checker.
Unit: Compiler
Bugs/feature requests, that are related to the V compiler in general.
V doctor:
What did you do?
v -g -o vdbg cmd/v && vdbg x.v
What did you expect to see?
a compiler error, similar to the one for assignment, requiring a non empty or block
What did you see instead?
Note that outside a string interpolation:
produces (as it should) an error:
The problem happens only inside string interpolations.
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: