diff options
author | Araq <rumpf_a@web.de> | 2013-03-21 21:28:46 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2013-03-21 21:28:46 +0100 |
commit | c9ed846a43e0061702c408ab6397574e532d9bca (patch) | |
tree | 8a0e4722501822d593a2fe5643aaae7fc54401c5 /tests | |
parent | 02b1503e1f1d98206e743d0fe7eb24da5d28eb39 (diff) | |
download | Nim-c9ed846a43e0061702c408ab6397574e532d9bca.tar.gz |
added system.locals
Diffstat (limited to 'tests')
-rw-r--r-- | tests/run/tlocals.nim | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/run/tlocals.nim b/tests/run/tlocals.nim new file mode 100644 index 000000000..94a34139b --- /dev/null +++ b/tests/run/tlocals.nim @@ -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) + |