aboutsummaryrefslogtreecommitdiff
path: root/test/cases/ambiguous_reference.zig
blob: 66144a5645902aea913226486abd12657434367d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
const T = struct {
    const T = struct {
        fn f() void {
            _ = T;
        }
    };
};

// error
//
// :4:17: error: ambiguous reference
// :2:5: note: declared here
// :1:1: note: also declared here