Bad try
inside function that doesn't return error union not caught for function with !T
return type
#11795
Labels
bug
Observed behavior contradicts documented or intended behavior
Zig Version
0.10.0-dev.2398+b08d32ceb
Steps to Reproduce
Expected Behavior
Actual Behavior
It compiles and does nothing. The error only shows up when changing
!void
toanyerror!void
(or similar). Looks like a little oversight.This happens in stage1 and stage2.
The text was updated successfully, but these errors were encountered: