make tstatic_t_bug compile with the C++ backend
This commit is contained in:
parent
2fa13040b9
commit
fe855d8ba4
1 changed files with 2 additions and 2 deletions
|
|
@ -1734,7 +1734,7 @@ proc isException*(t: PType): bool =
|
|||
return false
|
||||
|
||||
var base = t
|
||||
while base != nil:
|
||||
while base != nil and base.kind in {tyObject, tyGenericInst}:
|
||||
if base.sym != nil and base.sym.magic == mException:
|
||||
return true
|
||||
base = base.lastSon
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue