Revert "more test made green"

This reverts commit 911e6e710f.
This commit is contained in:
Araq 2013-05-27 23:16:56 +02:00
commit c67abd7e61
6 changed files with 89 additions and 96 deletions

View file

@ -374,7 +374,7 @@ proc semCaseBranch(c: PContext, t, branch: PNode, branchIndex: int,
# for ``{}`` we want to trigger the type mismatch in ``fitNode``:
if r.kind != nkCurly or len(r) == 0:
checkMinSonsLen(t, 1)
branch.sons[i] = skipConv(fitNode(c, t.sons[0].typ, r))
branch.sons[i] = fitNode(c, t.sons[0].typ, r)
inc(covered)
else:
# constant sets have special rules