new tester; all tests categorized
This commit is contained in:
parent
51ee524109
commit
20b5f31c03
481 changed files with 794 additions and 2506 deletions
15
tests/casestmt/tcaseoverlaprange.nim
Normal file
15
tests/casestmt/tcaseoverlaprange.nim
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
discard """
|
||||
line: 13
|
||||
errormsg: "duplicate case label"
|
||||
"""
|
||||
|
||||
type
|
||||
TE = enum A, B, C, D
|
||||
|
||||
var
|
||||
e: TE
|
||||
|
||||
case e
|
||||
of A..D, B..C:
|
||||
echo "redundant"
|
||||
else: nil
|
||||
Loading…
Add table
Add a link
Reference in a new issue