This commit is contained in:
Andreas Rumpf
2019-03-30 23:45:40 +01:00
parent caf0552573
commit aa072b9525

View File

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