summary refs log tree commit diff stats
path: root/tests/accept/compile
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2011-06-15 12:35:47 +0200
committerAraq <rumpf_a@web.de>2011-06-15 12:35:47 +0200
commitf7884717c107ab3fc6f13492eaa5309379f4cb41 (patch)
tree57ec3f61a0547f4a6117b7fd866c666ec3ea0070 /tests/accept/compile
parenta15475f582e18a684c1015544b908b195f436d6d (diff)
downloadNim-f7884717c107ab3fc6f13492eaa5309379f4cb41.tar.gz
bugfix: proper return types for templates
Diffstat (limited to 'tests/accept/compile')
-rw-r--r--tests/accept/compile/ttemplreturntype.nim4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/accept/compile/ttemplreturntype.nim b/tests/accept/compile/ttemplreturntype.nim
new file mode 100644
index 000000000..642fa1b72
--- /dev/null
+++ b/tests/accept/compile/ttemplreturntype.nim
@@ -0,0 +1,4 @@
+
+template `=~` (a: int, b: int): bool = false
+var foo = 2 =~ 3
+