This commit is contained in:
Araq 2014-03-04 08:31:11 +01:00
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) idTablePut(gTypeTable[k], key, key)
result = key result = key
of tyProc: of tyProc:
# tyVar is not 100% correct, but would speeds things up a little:
if key.callConv != ccClosure: if key.callConv != ccClosure:
result = key result = key
else: else:

View file

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

View file

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