aboutsummaryrefslogtreecommitdiff
path: root/test/cases/compile_errors/redundant_comptime_keyword.zig
blob: 8f1b1da9beeeffdcc4f87a2f8dd733b217d9beff (plain)
1
2
3
4
5
6
7
8
9
10
11
comptime {
    _ = comptime 0;
}
comptime {
    comptime _, _ = .{ 0, 0 };
}

// error
//
// :2:9: error: redundant comptime keyword in already comptime scope
// :5:5: error: redundant comptime keyword in already comptime scope