diff options
Diffstat (limited to 'compiler/ast.nim')
-rw-r--r-- | compiler/ast.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/ast.nim b/compiler/ast.nim index 8fbce84f0..aa7250513 100644 --- a/compiler/ast.nim +++ b/compiler/ast.nim @@ -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 |