summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2019-03-30 23:45:40 +0100
committerAndreas Rumpf <rumpf_a@web.de>2019-03-30 23:45:40 +0100
commitaa072b952555804e516861d9ed62846e341f7938 (patch)
tree8725f07f8914d40cc8ff6081f7a67fc32174c650
parentcaf0552573fccc6be4ee3fab141a39d2930e6272 (diff)
downloadNim-aa072b952555804e516861d9ed62846e341f7938.tar.gz
fixes #10930
-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)