summary refs log tree commit diff stats
path: root/tests/template/tlt.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2016-08-04 00:30:08 +0200
committerAndreas Rumpf <rumpf_a@web.de>2016-08-04 01:37:41 +0200
commit6d98c717deb16d265fb1d26528182eb16b07f784 (patch)
treefea8a5d5a861ae8d5522b3321ec63118225744b3 /tests/template/tlt.nim
parent186bfe447515cd32916415f3b8675120f1a9f9ff (diff)
downloadNim-6d98c717deb16d265fb1d26528182eb16b07f784.tar.gz
fixes #4564
Diffstat (limited to 'tests/template/tlt.nim')
-rw-r--r--tests/template/tlt.nim7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/template/tlt.nim b/tests/template/tlt.nim
new file mode 100644
index 000000000..75c7dd991
--- /dev/null
+++ b/tests/template/tlt.nim
@@ -0,0 +1,7 @@
+
+import mlt
+# bug #4564
+type Bar* = ref object of RootObj
+proc foo(a: Bar): int = 0
+var a: Bar
+let b = a.foo() > 0