parent
a87062393a
commit
ed263e174e
2 changed files with 7 additions and 1 deletions
6
tests/generics/t13525.nim
Normal file
6
tests/generics/t13525.nim
Normal file
|
|
@ -0,0 +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"
|
||||
Loading…
Add table
Add a link
Reference in a new issue