fix typo in test name undeclared_routime.nim => undeclared_routine.nim (#17861)
This commit is contained in:
parent
01267292d8
commit
f52aa6bde8
7 changed files with 17 additions and 17 deletions
|
|
@ -1,13 +0,0 @@
|
||||||
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)
|
|
||||||
13
tests/errmsgs/undeclared_routine.nim
Normal file
13
tests/errmsgs/undeclared_routine.nim
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
discard """
|
||||||
|
cmd: '''nim c --hints:off $file'''
|
||||||
|
errormsg: "attempting to call routine: 'myiter'"
|
||||||
|
nimout: '''undeclared_routine.nim(13, 15) Error: attempting to call routine: 'myiter'
|
||||||
|
found 'undeclared_routine.myiter(a: string)[iterator declared in undeclared_routine.nim(10, 9)]'
|
||||||
|
found 'undeclared_routine.myiter()[iterator declared in undeclared_routine.nim(11, 9)]'
|
||||||
|
'''
|
||||||
|
"""
|
||||||
|
|
||||||
|
iterator myiter(a:string): int = discard
|
||||||
|
iterator myiter(): int = discard
|
||||||
|
|
||||||
|
let a = myiter(1)
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
discard """
|
discard """
|
||||||
cmd: '''nim c --hints:off $file'''
|
cmd: '''nim c --hints:off $file'''
|
||||||
errormsg: "undeclared field: 'bar'"
|
errormsg: "undeclared field: 'bar'"
|
||||||
nimout: '''undeclared_routime3.nim(13, 10) Error: undeclared field: 'bar'
|
nimout: '''undeclared_routine3.nim(13, 10) Error: undeclared field: 'bar'
|
||||||
found 'undeclared_routime3.bar()[declared in undeclared_routime3.nim(12, 9)]' of kind 'iterator'
|
found 'undeclared_routine3.bar()[declared in undeclared_routine3.nim(12, 9)]' of kind 'iterator'
|
||||||
'''
|
'''
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
discard """
|
discard """
|
||||||
cmd: '''nim c --hints:off $file'''
|
cmd: '''nim c --hints:off $file'''
|
||||||
errormsg: "undeclared field: 'bar'"
|
errormsg: "undeclared field: 'bar'"
|
||||||
nimout: '''undeclared_routime4.nim(10, 10) Error: undeclared field: 'bar'
|
nimout: '''undeclared_routine4.nim(10, 10) Error: undeclared field: 'bar'
|
||||||
'''
|
'''
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
discard """
|
discard """
|
||||||
cmd: '''nim c --hints:off $file'''
|
cmd: '''nim c --hints:off $file'''
|
||||||
errormsg: "undeclared identifier: 'myfun'"
|
errormsg: "undeclared identifier: 'myfun'"
|
||||||
nimout: '''undeclared_routime5.nim(9, 9) Error: undeclared identifier: 'myfun'
|
nimout: '''undeclared_routine5.nim(9, 9) Error: undeclared identifier: 'myfun'
|
||||||
'''
|
'''
|
||||||
"""
|
"""
|
||||||
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue