parent
9c3faa449b
commit
cb3af8ad39
3 changed files with 13 additions and 3 deletions
11
tests/template/tunderscore1.nim
Normal file
11
tests/template/tunderscore1.nim
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
discard """
|
||||
errormsg: "undeclared identifier: '_'"
|
||||
"""
|
||||
|
||||
# issue #12094, #13804
|
||||
|
||||
template foo =
|
||||
let _ = 1
|
||||
echo _
|
||||
|
||||
foo()
|
||||
Loading…
Add table
Add a link
Reference in a new issue