master
 1fn foo() void {}
 2fn bar() void {
 3    const S = struct {
 4        fn baz() void {
 5            foo();
 6        }
 7        fn foo() void {}
 8    };
 9    S.baz();
10}
11export fn entry() void {
12    bar();
13}
14
15// error
16//
17// :5:13: error: ambiguous reference
18// :7:9: note: declared here
19// :1:1: note: also declared here