mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-30 01:44:37 +00:00
* new .gensym implementation * make astspec test green again * introduce a --useVersion switch to group compatibility switches * fixes #10180 * fixes #11494 * fixes #11483 * object constructor fields and named parameters are also not gensym'ed * disabled broken package
14 lines
157 B
Nim
14 lines
157 B
Nim
discard """
|
|
errormsg: "redefinition of 'a`gensym"
|
|
line: 9
|
|
"""
|
|
# bug #10180
|
|
proc f() =
|
|
template t() =
|
|
var a = 1
|
|
var a = 2
|
|
echo a
|
|
t()
|
|
|
|
f()
|