* honor --declaredLocs in more places, including type mismatch errors * fix tests * show declaration location also when type mismatch names clash
13 lines
473 B
Nim
13 lines
473 B
Nim
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)
|