more tests compile
This commit is contained in:
parent
42ae2064dd
commit
534daff013
1 changed files with 4 additions and 3 deletions
|
|
@ -318,13 +318,14 @@ proc getTypeForward(m: BModule, typ: PType; sig: SigHash): Rope =
|
||||||
if result != nil: return
|
if result != nil: return
|
||||||
result = getTypePre(m, typ, sig)
|
result = getTypePre(m, typ, sig)
|
||||||
if result != nil: return
|
if result != nil: return
|
||||||
case typ.skipTypes(abstractInst).kind
|
let concrete = typ.skipTypes(abstractInst)
|
||||||
|
case concrete.kind
|
||||||
of tySequence, tyTuple, tyObject:
|
of tySequence, tyTuple, tyObject:
|
||||||
result = getTypeName(m, typ, sig)
|
result = getTypeName(m, typ, sig)
|
||||||
m.forwTypeCache[sig] = result
|
m.forwTypeCache[sig] = result
|
||||||
if not isImportedType(typ):
|
if not isImportedType(concrete):
|
||||||
addf(m.s[cfsForwardTypes], "/* getTypeForward: $1 $2 $3 */", [rope typeToString typ,
|
addf(m.s[cfsForwardTypes], "/* getTypeForward: $1 $2 $3 */", [rope typeToString typ,
|
||||||
rope typ.id, rope m.module.id])
|
rope typ.id, rope($typ.kind)])
|
||||||
addf(m.s[cfsForwardTypes], getForwardStructFormat(m),
|
addf(m.s[cfsForwardTypes], getForwardStructFormat(m),
|
||||||
[structOrUnion(typ), result])
|
[structOrUnion(typ), result])
|
||||||
doAssert m.forwTypeCache[sig] == result
|
doAssert m.forwTypeCache[sig] == result
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue