1
0
mirror of https://github.com/twiglet/cs2j.git synced 2025-01-18 13:15:17 +01:00

Make Iterable translation work in generic types

This commit is contained in:
Kevin Glynn 2011-03-01 11:42:09 +01:00
parent b4f8818196
commit 8e788fbb46

View File

@ -466,7 +466,7 @@ namespace Twiglet.CS2J.Translator.TypeRep
{
if (ElementType != null)
{
TemplateUtilities.SubstituteInType(ElementType, args);
ElementType = TemplateUtilities.SubstituteInType(ElementType, args);
}
base.Apply(args);
}
@ -2595,10 +2595,14 @@ namespace Twiglet.CS2J.Translator.TypeRep
}
if (Indexers != null)
{
foreach(IndexerRepTemplate i in Indexers)
{
i.Apply(args);
}
foreach (IndexerRepTemplate i in Indexers)
{
i.Apply(args);
}
}
if (Iterable != null)
{
Iterable.Apply(args);
}
base.Apply(args);
}