Permalink
Browse files

Generated internals of external specialisations only if the template …

…has template fields.

Signed-off-by: Dimitar Dobrev <dpldobrev@protonmail.com>
  • Loading branch information...
ddobrev committed Jul 26, 2017
1 parent 49104ee commit cf98ecd36e951f42fa6061e151eb80921366281e
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/Generator/Passes/TrimSpecializationsPass.cs
@@ -134,7 +134,8 @@ into @group
template.Specializations.All(s => s.Ignore))
template.ExplicitlyIgnore();
MoveExternalSpecializations(template);
if (template.Fields.Any(f => f.Type.Desugar() is TemplateParameterType))
MoveExternalSpecializations(template);
}
/// <summary>

0 comments on commit cf98ecd

Please sign in to comment.