fixes a regression about static object case variant checking
This commit is contained in:
parent
0872e7a27e
commit
824092be31
2 changed files with 33 additions and 1 deletions
|
|
@ -77,7 +77,9 @@ proc semConstrField(c: PContext, flags: TExprFlags,
|
|||
|
||||
proc caseBranchMatchesExpr(branch, matched: PNode): bool =
|
||||
for i in 0 .. branch.len-2:
|
||||
if exprStructuralEquivalent(branch[i], matched):
|
||||
if branch[i].kind == nkRange:
|
||||
if overlap(branch[i], matched): return true
|
||||
elif exprStructuralEquivalent(branch[i], matched):
|
||||
return true
|
||||
|
||||
return false
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue