Init new repository
This commit is contained in:
12
tests/switch_non_int.txt
Normal file
12
tests/switch_non_int.txt
Normal file
@@ -0,0 +1,12 @@
|
||||
// #failed: resolve
|
||||
// #error: invalid type in switch condition '*int', it should be an integer
|
||||
|
||||
main :: proc(): int {
|
||||
i: *int = nil;
|
||||
switch i {
|
||||
case 0: {}
|
||||
default: {}
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user