mirror of
https://github.com/nim-lang/Nim.git
synced 2026-06-04 19:04:46 +00:00
typo: nonexistant => nonexistent (#17918)
* typo: nonexistant => nonexistent * fix test (ordering differs because of https://github.com/nim-lang/Nim/issues/17910)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# https://github.com/nim-lang/Nim/issues/13524
|
||||
template fun(field): untyped = astToStr(field)
|
||||
proc test1(): string = fun(nonexistant1)
|
||||
proc test2[T](): string = fun(nonexistant2) # used to cause: Error: undeclared identifier: 'nonexistant2'
|
||||
doAssert test1() == "nonexistant1"
|
||||
doAssert test2[int]() == "nonexistant2"
|
||||
proc test1(): string = fun(nonexistent1)
|
||||
proc test2[T](): string = fun(nonexistent2) # used to cause: Error: undeclared identifier: 'nonexistent2'
|
||||
doAssert test1() == "nonexistent1"
|
||||
doAssert test2[int]() == "nonexistent2"
|
||||
|
||||
Reference in New Issue
Block a user