remerge "Fixes #267"
This commit is contained in:
parent
f127bc387a
commit
dfb5cb3c5d
5 changed files with 192 additions and 105 deletions
|
|
@ -207,6 +207,11 @@ proc makeTypeDesc*(c: PContext, typ: PType): PType =
|
|||
proc newTypeS(kind: TTypeKind, c: PContext): PType =
|
||||
result = newType(kind, getCurrOwner())
|
||||
|
||||
proc newTypeWithSons*(c: PContext, kind: TTypeKind,
|
||||
sons: seq[PType]): PType =
|
||||
result = newType(kind, getCurrOwner())
|
||||
result.sons = sons
|
||||
|
||||
proc errorType*(c: PContext): PType =
|
||||
## creates a type representing an error state
|
||||
result = newTypeS(tyError, c)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue