mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-04-27 19:09:47 +03:00
50339f595a
Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me>
11 lines
174 B
Zig
11 lines
174 B
Zig
const Foo = i32;
|
|
export fn foo() usize {
|
|
return @offsetOf(Foo, "a");
|
|
}
|
|
|
|
// error
|
|
// backend=stage2
|
|
// target=native
|
|
//
|
|
// :3:22: error: expected struct type, found 'i32'
|