Compiler segfault analyzing array_init_ref
when comptime-only argument is runtime-only
#22868
Labels
bug
Observed behavior contradicts documented or intended behavior
Zig Version
0.14.0-dev.3002+1f2fff682
Steps to Reproduce and Observed Behavior
zig build check
Note that
hasAnyPropertyNamed
has this definition:names
is supposed to be comptime-known, but we're passing it a runtime-only value here:And the array itself is defined incorrectly because it's missing the
&
Expected Behavior
It should print some error messages telling me what went wrong
The text was updated successfully, but these errors were encountered: