File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
test/cases/compile_errors Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -14,4 +14,5 @@ fn doSomeAsm() void {
14
14
// backend=llvm
15
15
// target=native
16
16
//
17
- // :6:5: error: unable to evaluate constant expression
17
+ // :6:5: error: unable to resolve comptime value
18
+ // :2:14: note: called from here
Original file line number Diff line number Diff line change @@ -8,8 +8,8 @@ export fn entry() void {
8
8
}
9
9
fn foo (x : i32 ) ! void {
10
10
switch (x ) {
11
- 0 ... 10 = > return error .Foo ,
12
- 11 ... 20 = > return error .Bar ,
11
+ 0... 10 = > return error .Foo ,
12
+ 11... 20 = > return error .Bar ,
13
13
else = > {},
14
14
}
15
15
}
@@ -19,4 +19,4 @@ fn foo(x: i32) !void {
19
19
// target=native
20
20
//
21
21
// :5:9: error: duplicate switch value
22
- // :3:9: note: other value here
22
+ // :3:9: note: previous value here
You can’t perform that action at this time.
0 commit comments