Files
Nim/tests/errmsgs/tnnodeindex.nim
2019-09-08 20:31:22 +02:00

9 lines
136 B
Nim

discard """
errormsg: "index 5 not in 0 .. 2"
line: 7
"""
import macros
macro t(x: untyped): untyped =
result = x[5]
t([1, 2, 3])