mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 06:13:07 +00:00
backend=auto (now the default if backend is omitted) means to let the compiler pick whatever backend it wants as the default. This is important for platforms where we don't yet have a self-hosted backend, such as loongarch64. Also purge a bunch of redundant target=native.
20 lines
307 B
Zig
20 lines
307 B
Zig
fn foo() void {}
|
|
fn bar() void {
|
|
const S = struct {
|
|
fn baz() void {
|
|
foo();
|
|
}
|
|
fn foo() void {}
|
|
};
|
|
S.baz();
|
|
}
|
|
export fn entry() void {
|
|
bar();
|
|
}
|
|
|
|
// error
|
|
//
|
|
// :5:13: error: ambiguous reference
|
|
// :7:9: note: declared here
|
|
// :1:1: note: also declared here
|