diff options
Diffstat (limited to 'compiler/semdata.nim')
-rwxr-xr-x | compiler/semdata.nim | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/semdata.nim b/compiler/semdata.nim index fb5b8075a..26552c294 100755 --- a/compiler/semdata.nim +++ b/compiler/semdata.nim @@ -224,6 +224,10 @@ proc makeTypeDesc*(c: PContext, typ: PType): PType = proc newTypeS(kind: TTypeKind, c: PContext): PType = result = newType(kind, getCurrOwner()) +proc errorType*(c: PContext): PType = + ## creates a type representing an error state + result = newTypeS(tyEmpty, c) + proc fillTypeS(dest: PType, kind: TTypeKind, c: PContext) = dest.kind = kind dest.owner = getCurrOwner() |