bugfix: case exhaustiveness checking
This commit is contained in:
parent
b7d1901747
commit
02b1503e1f
5 changed files with 27 additions and 6 deletions
|
|
@ -156,6 +156,10 @@ proc skipConv*(n: PNode): PNode =
|
|||
result = n.sons[1]
|
||||
else: result = n
|
||||
|
||||
proc skipConvTakeType*(n: PNode): PNode =
|
||||
result = n.skipConv
|
||||
result.typ = n.typ
|
||||
|
||||
proc SameValue*(a, b: PNode): bool =
|
||||
result = false
|
||||
case a.kind
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue