Files
Nim/tests/template/tunderscore1.nim
metagn ecf9efa397 document general use of _, error message, fixes (#21584)
* document general use of `_`, error message, fixes

fixes #20687, fixes #21435

Documentation and changelog updated to clarify new universal behavior
of `_`. Also new error message for attempting to use `_`, new tests,
and fixes with overloadable symbols and
implicit generics.

* add test for #21435
2023-03-30 15:34:42 +02:00

12 lines
171 B
Nim

discard """
errormsg: "the special identifier '_' is ignored in declarations and cannot be used"
"""
# issue #12094, #13804
template foo =
let _ = 1
echo _
foo()