mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-05-16 13:05:25 +03:00
dff6efe369
Fixes #15497
12 lines
216 B
Zig
12 lines
216 B
Zig
export fn a() void {
|
|
const S = struct { x: i32, y: i32 };
|
|
var s: S = undefined;
|
|
s[0] = 10;
|
|
}
|
|
|
|
// error
|
|
// backend=stage2
|
|
// target=native
|
|
//
|
|
// :4:6: error: element access of non-indexable type 'tmp.a.S'
|