This commit is contained in:
Andreas Rumpf 2018-04-11 23:26:11 +02:00
commit 4c5351a1eb
2 changed files with 7 additions and 3 deletions

View file

@ -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