bugfix: proper return types for templates

This commit is contained in:
Araq 2011-06-15 12:35:47 +02:00
commit f7884717c1
6 changed files with 35 additions and 26 deletions

View file

@ -0,0 +1,4 @@
template `=~` (a: int, b: int): bool = false
var foo = 2 =~ 3

View file

@ -69,7 +69,9 @@ block countTableTest1:
t.inc("12", 2)
t.inc("34", 1)
assert t.largest()[0] == "90"
for k, v in t.pairs:
echo k, v
t.sort()
var i = 0
for k, v in t.pairs: