type kind is now part of the generated name for types (#6203)

This commit is contained in:
Arne Döring
2017-08-10 14:36:21 +02:00
committed by Andreas Rumpf
parent 4fdf7f2ea3
commit 4c31bc1cd1

View File

@@ -123,10 +123,11 @@ const
proc typeName(typ: PType): Rope =
let typ = typ.skipTypes(irrelevantForBackend)
result = if typ.sym != nil and typ.kind in {tyObject, tyEnum}:
typ.sym.name.s.mangle.rope
else:
~"TY"
result =
if typ.sym != nil and typ.kind in {tyObject, tyEnum}:
typ.sym.name.s.mangle.rope
else:
rope($typ.kind)
proc getTypeName(m: BModule; typ: PType; sig: SigHash): Rope =
var t = typ