summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2013-03-21 21:28:46 +0100
committerAraq <rumpf_a@web.de>2013-03-21 21:28:46 +0100
commitc9ed846a43e0061702c408ab6397574e532d9bca (patch)
tree8a0e4722501822d593a2fe5643aaae7fc54401c5 /tests
parent02b1503e1f1d98206e743d0fe7eb24da5d28eb39 (diff)
downloadNim-c9ed846a43e0061702c408ab6397574e532d9bca.tar.gz
added system.locals
Diffstat (limited to 'tests')
-rw-r--r--tests/run/tlocals.nim11
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)
+
200 travis: cleanup & add 32-bit Linux testing (#11337)' href='/ahoang/Nim/commit/.travis.yml?h=devel&id=1d00f7f9d73edb79cc581ca9b49fb038573c01d5'>1d00f7f9d ^
505571f31 ^

1d00f7f9d ^


505571f31 ^

1d00f7f9d ^


505571f31 ^
42bac5242 ^


b45483f86 ^
d93749b17 ^
517312467 ^

1d00f7f9d ^
517312467 ^


e5aefbd1d ^
911551aae ^
6a94599d6 ^




ae5a4cea9 ^
363b1c0a4 ^
1d00f7f9d ^





8f6a275f4 ^
fbe7bf3c8 ^
1d00f7f9d ^

c60916a2a ^
a01fd5e93 ^
aa0a9dd78 ^
a01fd5e93 ^
aa0a9dd78 ^
c60916a2a ^
308710c1e ^



2e5c75973 ^
308710c1e ^







cf323104f ^


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92