mirror of
https://github.com/odin-lang/Odin.git
synced 2026-04-26 00:03:54 +00:00
Disallow #complete switch ranges
This commit is contained in:
@@ -741,10 +741,10 @@ complete_switch :: proc() {
|
||||
b := Foo.B;
|
||||
f := Foo.A;
|
||||
#complete switch f {
|
||||
case A...C: fmt.println("A...C");
|
||||
// case A: fmt.println("A");
|
||||
// case B: fmt.println("B");
|
||||
// case C: fmt.println("C");
|
||||
// case A...C: fmt.println("A...C");
|
||||
case A: fmt.println("A");
|
||||
case B: fmt.println("B");
|
||||
case C: fmt.println("C");
|
||||
case D: fmt.println("D");
|
||||
case: fmt.println("?");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user