Revert "fixes #267"

This reverts commit 7fccdedcb5.
This commit is contained in:
Araq 2013-05-27 23:20:41 +02:00
commit a8ba628bcd
5 changed files with 97 additions and 184 deletions

View file

@ -207,11 +207,6 @@ 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)