mirror of
https://github.com/nim-lang/Nim.git
synced 2026-02-12 06:18:51 +00:00
17 lines
249 B
Nim
17 lines
249 B
Nim
discard """
|
|
action: reject
|
|
nimout: '''
|
|
stack trace: (most recent call last)
|
|
tvmranges.nim(14, 10)
|
|
tvmranges.nim(14, 10) Error: unhandled exception: value out of range
|
|
'''
|
|
"""
|
|
|
|
type X = enum
|
|
a
|
|
b
|
|
|
|
when pred(a) == b:
|
|
echo "a"
|
|
else:
|
|
echo "b" |