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

15 lines
249 B
Plaintext

// #failed: resolve
// #error: expected an untyped constant
main :: proc(): int {
value := 1;
switch value {
case 0, 2: {
return 1;
}
case 1, value: {
return 2;
}
}
return 0;
}