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
11
tests/errmsgs/undeclared_routine_compiles.nim
Normal file
11
tests/errmsgs/undeclared_routine_compiles.nim
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
# D20180828T234921:here
|
||||
template foo*(iter: untyped): untyped =
|
||||
when compiles(iter.unexistingField): 0
|
||||
elif compiles(iter.len): 1
|
||||
else: 2
|
||||
|
||||
proc foo[A]()=
|
||||
let a2 = @[10, 11]
|
||||
let a3 = foo(pairs(a2))
|
||||
|
||||
foo[int]()
|
||||
Loading…
Add table
Add a link
Reference in a new issue