From f51de2e488977fa10896eb343a7f09b9013380d3 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Sat, 17 Feb 2018 19:24:02 +0000 Subject: Disallow #complete switch ranges --- examples/demo.odin | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'examples') diff --git a/examples/demo.odin b/examples/demo.odin index 85868e35b..e11cf2227 100644 --- a/examples/demo.odin +++ b/examples/demo.odin @@ -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("?"); } -- cgit v1.2.3