mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-19 05:50:30 +00:00
thygienictempl added
This commit is contained in:
10
tests/compile/thygienictempl.nim
Normal file
10
tests/compile/thygienictempl.nim
Normal file
@@ -0,0 +1,10 @@
|
||||
|
||||
var
|
||||
e = "abc"
|
||||
|
||||
raise newException(EIO, e & "ha!")
|
||||
|
||||
template t() = echo(foo)
|
||||
|
||||
var foo = 12
|
||||
t()
|
||||
Reference in New Issue
Block a user