added system.locals

This commit is contained in:
Araq 2013-03-21 21:28:46 +01:00
commit c9ed846a43
7 changed files with 64 additions and 18 deletions

11
tests/run/tlocals.nim Normal file
View 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)