more test made green
the lambda lifting was trying too hard to ignore generic prods isGenericRoutine was producing false-negatives and only this allowed for some of the warning and error messages to be triggered. some files with mixed line endings were fixed
This commit is contained in:
parent
4ae4005f80
commit
911e6e710f
6 changed files with 96 additions and 89 deletions
|
|
@ -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] = fitNode(c, t.sons[0].typ, r)
|
||||
branch.sons[i] = skipConv(fitNode(c, t.sons[0].typ, r))
|
||||
inc(covered)
|
||||
else:
|
||||
# constant sets have special rules
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue