no error on invalid try
before anon struct
#21991
Labels
bug
Observed behavior contradicts documented or intended behavior
try
before anon struct
#21991
Zig Version
0.14.0-dev.2126+e27b4647d
Steps to Reproduce and Observed Behavior
The compiler doesn't report an error message here and these 3 tests all pass.
I originally noticed this while refactoring some code and forgot to remove
try
from a switch statement, similar to theseExpected Behavior
I would expect an error message like this:
The text was updated successfully, but these errors were encountered: