blob: 7ef12cc0e7690588fb4c8bac9ca8925923c63593 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
discard """
cmd: '''nim c --hints:off $file'''
errormsg: "attempting to call routine: 'myiter'"
nimout: '''undeclared_routime.nim(13, 15) Error: attempting to call routine: 'myiter'
found 'undeclared_routime.myiter(a: string)[iterator declared in undeclared_routime.nim(10, 9)]'
found 'undeclared_routime.myiter()[iterator declared in undeclared_routime.nim(11, 9)]'
'''
"""
iterator myiter(a:string): int = discard
iterator myiter(): int = discard
let a = myiter(1)
|