mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-29 17:34:43 +00:00
* fix #19678 Broken behavior with string ranges in case labels * Update compiler/semtypes.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de> Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
18 lines
203 B
Nim
18 lines
203 B
Nim
discard """
|
|
cmd: "nim check --hints:off $file"
|
|
errormsg: ""
|
|
nimout: '''
|
|
t19678.nim(13, 13) Error: range of string is invalid
|
|
|
|
|
|
|
|
'''
|
|
"""
|
|
|
|
case "5":
|
|
of "0" .. "9":
|
|
discard
|
|
else:
|
|
discard
|
|
|