fixed typo ':' instead of ','

This commit is contained in:
Araq 2015-07-20 19:33:26 +02:00
commit a7de40ae56
4 changed files with 1130 additions and 245 deletions

File diff suppressed because it is too large Load diff

View file

@ -1,22 +1 @@
import macros
macro cov(n: untyped): untyped =
result = n
echo treeRepr n
cov:
proc toTest(x, y: int) =
try:
case x
of 8:
if y > 9: echo "8.1"
else: echo "8.2"
of 9: echo "9"
else: echo "foo"
echo "no exception"
except IoError:
echo "IoError"
toTest(8, 10)
toTest(10, 10)