diff options
| author | gingerBill <bill@gingerbill.org> | 2018-02-17 19:24:02 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2018-02-17 19:24:02 +0000 |
| commit | f51de2e488977fa10896eb343a7f09b9013380d3 (patch) | |
| tree | 32d7c209d413468971304d79ba469cea0dd5a048 /examples | |
| parent | cabb2bb9920096e8a91ac4ed36c5778f2f114d98 (diff) | |
Disallow #complete switch ranges
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/demo.odin | 8 |
1 files changed, 4 insertions, 4 deletions
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("?"); } |