Permalink
Browse files

Fixed the generation of internals of classes nested in templates.

Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
  • Loading branch information...
ddobrev committed Jul 30, 2017
1 parent 23e7dec commit 108bf7505347208bc075a14a9bb3fab5de02f73b
Showing with 4 additions and 2 deletions.
  1. +4 −2 src/Generator/Generators/CSharp/CSharpSources.cs
@@ -274,8 +274,10 @@ private void GenerateClassTemplateSpecializationInternal(Class classTemplate)
if (generateNested)
{
foreach (var nestedClass in classTemplate.Classes.Where(c => !c.IsDependent).Union(
generated.First().Classes.Where(c => !c.IsDependent)))
var specialization = generated.FirstOrDefault(s => !s.Ignore) ??
generated.First();
foreach (var nestedClass in classTemplate.Classes.Union(
specialization.Classes).Where(c => !c.IsDependent))
{
GenerateClassInternalsOnly(nestedClass);
foreach (var nestedNestedClass in nestedClass.Classes)

0 comments on commit 108bf75

Please sign in to comment.