summary refs log tree commit diff stats
path: root/compiler/semdata.nim
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/semdata.nim')
-rw-r--r--compiler/semdata.nim1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/semdata.nim b/compiler/semdata.nim
index bfe7d5f33..f7a7f20dc 100644
--- a/compiler/semdata.nim
+++ b/compiler/semdata.nim
@@ -382,6 +382,7 @@ template rangeHasUnresolvedStatic*(t: PType): bool =
 proc errorType*(c: PContext): PType =
   ## creates a type representing an error state
   result = newTypeS(tyError, c)
+  result.flags.incl tfCheckedForDestructor
 
 proc errorNode*(c: PContext, n: PNode): PNode =
   result = newNodeI(nkEmpty, n.info)