You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note that when removing the @compileError, the first snippet passes (for me on 0.14.0-dev.2987+183bb8b08),
so it's not just about analysis/error ordering/priority, the compile error is fully absent
in a comptime block (as opposed to a runtime block like test { ... }):
Zig Version
0.14.0-dev.3020+c104e8644
Steps to Reproduce and Observed Behavior
The following hits the explicit
@compileError
and doesn't error on assignment.however:
gives:
Expected Behavior
A compile error for assigning a non-default value to a comptime field at comptime.
The text was updated successfully, but these errors were encountered: