parent
c495628255
commit
8df55d0ad7
1 changed files with 15 additions and 0 deletions
15
tests/misc/t3482.nim
Normal file
15
tests/misc/t3482.nim
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
discard """
|
||||||
|
action: reject
|
||||||
|
nimout: "t3482.nim(13, 8) Error: undeclared identifier: 'output'"
|
||||||
|
"""
|
||||||
|
# bug #3482 (correct behavior since 1.4.0, cgen error in 1.2.0)
|
||||||
|
template foo*(body: typed) =
|
||||||
|
if true:
|
||||||
|
body
|
||||||
|
|
||||||
|
proc test =
|
||||||
|
foo:
|
||||||
|
var output = ""
|
||||||
|
echo output.len
|
||||||
|
|
||||||
|
test()
|
||||||
Loading…
Add table
Add a link
Reference in a new issue