summary refs log tree commit diff stats
path: root/tests/misc/tlocals.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/misc/tlocals.nim')
-rw-r--r--tests/misc/tlocals.nim11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/misc/tlocals.nim b/tests/misc/tlocals.nim
new file mode 100644
index 000000000..af8a54946
--- /dev/null
+++ b/tests/misc/tlocals.nim
@@ -0,0 +1,11 @@
+discard """
+  output: "(x: string here, a: 1)"
+"""
+
+proc simple[T](a: T) = 
+  var
+    x = "string here"
+  echo locals()
+  
+simple(1)
+