fixes #10930
This commit is contained in:
parent
caf0552573
commit
aa072b9525
1 changed files with 1 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue