summary refs log tree commit diff stats
path: root/tests/errmsgs/tstaticresult.nim
blob: bc534c7a811b5336e9909eb9ef2914a2d9c6c8ee (plain) (blame)
1
2
3
4
5
6
7
8
9
10
discard """
errormsg: '''
invalid type: 'static[int]' in this context: 'proc (x: int): static[int]' for proc
'''
"""

proc foo(x: int): static int =
  x + 123

echo foo(123)