General protection exception (no address available), or compiler crash, when accessing global anonymous struct variable from other file #22210
Labels
bug
Observed behavior contradicts documented or intended behavior
Zig Version
0.14.0-dev.2253+3a6a8b8aa
Steps to Reproduce and Observed Behavior
a.zig:
b.zig:
causes
This doesn't happen if you give
foo
a type, like so:or if you call the function from the same file:
when trying to set the property directly, it causes a compiler crash:
Expected Behavior
There shouldn't be a crash and the property should be updated correctly.
The text was updated successfully, but these errors were encountered: