mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-06-20 23:51:53 -04:00
36069a2a7d
This allows `@TypeOf(@as([*c]T, null).*.x)` to (continue to) work. In the long term these are probably not the semantics we want, unwrapping a comptime-known `null` pointer should always result in `unreachable`. Also adds missing runtime safety checks for loading null C pointers.