Init new repository
This commit is contained in:
15
tests/switch2.txt
Normal file
15
tests/switch2.txt
Normal file
@@ -0,0 +1,15 @@
|
||||
// #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;
|
||||
}
|
||||
Reference in New Issue
Block a user