From 6d98c717deb16d265fb1d26528182eb16b07f784 Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Thu, 4 Aug 2016 00:30:08 +0200 Subject: fixes #4564 --- tests/template/mlt.nim | 3 +++ tests/template/tlt.nim | 7 +++++++ 2 files changed, 10 insertions(+) create mode 100644 tests/template/mlt.nim create mode 100644 tests/template/tlt.nim (limited to 'tests') 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 -- cgit 1.4.1-2-gfad0