mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-31 02:12:11 +00:00
15 lines
336 B
Nim
15 lines
336 B
Nim
discard """
|
|
errormsg: " branch initialization with a runtime discriminator only supports ordinal types with 2^16 elements or less."
|
|
line: 13
|
|
"""
|
|
type
|
|
HoledObj = object
|
|
case kind: range[0 .. 20000]
|
|
of 0: a: int
|
|
else: discard
|
|
|
|
let someInt = low(int)
|
|
case someInt
|
|
of 938: echo HoledObj(kind: someInt, a: 1)
|
|
else: discard
|