diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2019-03-30 23:45:40 +0100 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2019-03-30 23:45:40 +0100 |
commit | aa072b952555804e516861d9ed62846e341f7938 (patch) | |
tree | 8725f07f8914d40cc8ff6081f7a67fc32174c650 | |
parent | caf0552573fccc6be4ee3fab141a39d2930e6272 (diff) | |
download | Nim-aa072b952555804e516861d9ed62846e341f7938.tar.gz |
fixes #10930
-rw-r--r-- | compiler/semdata.nim | 1 |
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) |