fix tclosure4

This commit is contained in:
Zahary Karadjov 2013-12-28 15:01:40 +02:00
commit 5d75ce2f2e
2 changed files with 12 additions and 6 deletions

View file

@ -673,6 +673,7 @@ proc liftParamType(c: PContext, procKind: TSymKind, genericParams: PNode,
result.rawAddSon(copyType(paramType.sons[i], getCurrOwner(), true))
result = instGenericContainer(c, paramType.sym.info, result,
allowMetaTypes = true)
result.lastSon.flags.incl tfHasMeta
result = newTypeWithSons(c, tyCompositeTypeClass, @[paramType, result])
result = addImplicitGeneric(result)