Files
lib_compiler/tests/switch_non_int.txt
2024-04-13 15:29:53 +02:00

12 lines
214 B
Plaintext

// #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;
}