Skip to content

Commit f52aa6b

Browse files
authored
fix typo in test name undeclared_routime.nim => undeclared_routine.nim (#17861)
1 parent 0126729 commit f52aa6b

File tree

7 files changed

+17
-17
lines changed

7 files changed

+17
-17
lines changed

tests/errmsgs/undeclared_routime.nim

Lines changed: 0 additions & 13 deletions
This file was deleted.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
discard """
2+
cmd: '''nim c --hints:off $file'''
3+
errormsg: "attempting to call routine: 'myiter'"
4+
nimout: '''undeclared_routine.nim(13, 15) Error: attempting to call routine: 'myiter'
5+
found 'undeclared_routine.myiter(a: string)[iterator declared in undeclared_routine.nim(10, 9)]'
6+
found 'undeclared_routine.myiter()[iterator declared in undeclared_routine.nim(11, 9)]'
7+
'''
8+
"""
9+
10+
iterator myiter(a:string): int = discard
11+
iterator myiter(): int = discard
12+
13+
let a = myiter(1)
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
discard """
22
cmd: '''nim c --hints:off $file'''
33
errormsg: "undeclared field: 'bar'"
4-
nimout: '''undeclared_routime3.nim(13, 10) Error: undeclared field: 'bar'
5-
found 'undeclared_routime3.bar()[declared in undeclared_routime3.nim(12, 9)]' of kind 'iterator'
4+
nimout: '''undeclared_routine3.nim(13, 10) Error: undeclared field: 'bar'
5+
found 'undeclared_routine3.bar()[declared in undeclared_routine3.nim(12, 9)]' of kind 'iterator'
66
'''
77
"""
88

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
discard """
22
cmd: '''nim c --hints:off $file'''
33
errormsg: "undeclared field: 'bar'"
4-
nimout: '''undeclared_routime4.nim(10, 10) Error: undeclared field: 'bar'
4+
nimout: '''undeclared_routine4.nim(10, 10) Error: undeclared field: 'bar'
55
'''
66
"""
77

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
discard """
22
cmd: '''nim c --hints:off $file'''
33
errormsg: "undeclared identifier: 'myfun'"
4-
nimout: '''undeclared_routime5.nim(9, 9) Error: undeclared identifier: 'myfun'
4+
nimout: '''undeclared_routine5.nim(9, 9) Error: undeclared identifier: 'myfun'
55
'''
66
"""
77

File renamed without changes.

0 commit comments

Comments
 (0)