mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 14:23:09 +00:00
22 lines
342 B
Zig
22 lines
342 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
|
|
// backend=stage2
|
|
// target=native
|
|
//
|
|
// :5:13: error: ambiguous reference
|
|
// :7:9: note: declared here
|
|
// :1:1: note: also declared here
|