aboutsummaryrefslogtreecommitdiff
path: root/test/cases/compile_errors/top_level_decl_dependency_loop.zig
blob: 3b0e60ac02f12afcb72f2c57a8f6a337b08bb197 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
const a : @TypeOf(b) = 0;
const b : @TypeOf(a) = 0;
export fn entry() void {
    const c = a + b;
    _ = c;
}

// error
// backend=stage2
// target=native
//
// :1:1: error: dependency loop detected
// :2:19: note: referenced here