added system.locals
This commit is contained in:
parent
02b1503e1f
commit
c9ed846a43
7 changed files with 64 additions and 18 deletions
11
tests/run/tlocals.nim
Normal file
11
tests/run/tlocals.nim
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
discard """
|
||||
output: "(x: string here, a: 1, b: 3)"
|
||||
"""
|
||||
|
||||
proc simple[T](a, b: T) =
|
||||
var
|
||||
x = "string here"
|
||||
echo locals()
|
||||
|
||||
simple(1, 3)
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue