summary refs log tree commit diff stats
path: root/tests/errmsgs/undeclared_routime2.nim
blob: 3e48b48f4cd4015342e18f999b92da48f8eb43ad (plain) (blame)
1
2
3
4
5
6
7
8
9
discard """
cmd: '''nim c --hints:off $file'''
errormsg: "invalid pragma: myPragma"
"""

proc myPragma():int=discard
iterator myPragma():int=discard
proc myfun(a:int): int {.myPragma.} = 1
let a = myfun(1)