summary refs log tree commit diff stats
path: root/tests/system/tstatic_callable_error.nim
blob: c6f1e3d07673fe8ee45122c8b68d4afea7ce1de0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# bug #16987

discard """
errormsg: "cannot evaluate at compile time: inp"
nimout: '''
tstatic_callable_error.nim(14, 21) Error: cannot evaluate at compile time: inp'''
"""


# line 10
proc getNum(a: int): int = a

let inp = 123
echo (static getNum(inp))