Disallow #complete switch ranges

This commit is contained in:
gingerBill
2018-02-17 19:24:02 +00:00
parent cabb2bb992
commit f51de2e488
2 changed files with 8 additions and 37 deletions

View File

@@ -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("?");
}