fixes #6895
This commit is contained in:
parent
5e1e1a9145
commit
4c5351a1eb
2 changed files with 7 additions and 3 deletions
|
|
@ -1679,9 +1679,9 @@ proc isImportedException*(t: PType): bool =
|
|||
assert(t != nil)
|
||||
if optNoCppExceptions in gGlobalOptions:
|
||||
return false
|
||||
|
||||
|
||||
let base = t.skipTypes({tyAlias, tyPtr, tyDistinct, tyGenericInst})
|
||||
|
||||
|
||||
if base.sym != nil and sfCompileToCpp in base.sym.flags:
|
||||
result = true
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue