diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2016-08-04 00:30:08 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2016-08-04 01:37:41 +0200 |
commit | 6d98c717deb16d265fb1d26528182eb16b07f784 (patch) | |
tree | fea8a5d5a861ae8d5522b3321ec63118225744b3 /tests | |
parent | 186bfe447515cd32916415f3b8675120f1a9f9ff (diff) | |
download | Nim-6d98c717deb16d265fb1d26528182eb16b07f784.tar.gz |
fixes #4564
Diffstat (limited to 'tests')
-rw-r--r-- | tests/template/mlt.nim | 3 | ||||
-rw-r--r-- | tests/template/tlt.nim | 7 |
2 files changed, 10 insertions, 0 deletions
diff --git a/tests/template/mlt.nim b/tests/template/mlt.nim new file mode 100644 index 000000000..e567cf085 --- /dev/null +++ b/tests/template/mlt.nim @@ -0,0 +1,3 @@ + +type Point* = ref object of RootObj +proc `>`*(p1, p2: Point): bool = false 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 |