diff options
author | Araq <rumpf_a@web.de> | 2011-06-15 12:35:47 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2011-06-15 12:35:47 +0200 |
commit | f7884717c107ab3fc6f13492eaa5309379f4cb41 (patch) | |
tree | 57ec3f61a0547f4a6117b7fd866c666ec3ea0070 /tests/accept/compile | |
parent | a15475f582e18a684c1015544b908b195f436d6d (diff) | |
download | Nim-f7884717c107ab3fc6f13492eaa5309379f4cb41.tar.gz |
bugfix: proper return types for templates
Diffstat (limited to 'tests/accept/compile')
-rw-r--r-- | tests/accept/compile/ttemplreturntype.nim | 4 |
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 + |