This commit is contained in:
Araq
2014-03-04 08:31:11 +01:00
parent 7918c30b90
commit ed5bbfe36d
3 changed files with 3 additions and 2 deletions

View File

@@ -130,7 +130,6 @@ proc getUniqueType*(key: PType): PType =
idTablePut(gTypeTable[k], key, key)
result = key
of tyProc:
# tyVar is not 100% correct, but would speeds things up a little:
if key.callConv != ccClosure:
result = key
else:

View File

@@ -452,7 +452,8 @@ proc typeToString(typ: PType, prefer: TPreferedDesc = preferName): string =
of tyProc: "proc"
of tyObject: "object"
of tyTuple: "tuple"
else: (internalAssert(false); "")
of tyOpenArray: "openarray"
else: typeToStr[t.base.kind]
of tyUserTypeClassInst:
let body = t.base
result = body.sym.name.s & "["

View File

@@ -1,6 +1,7 @@
version 0.9.4
=============
- make testament produce full JSON information
- fix gensym capture bug
- vm
- at least try to get the basic type zoo ops right