Fix a type name clash with the immediately enclosing type.

This commit is contained in:
Kuba Ober 2019-08-29 02:14:40 -04:00
parent 8d9c3a8b57
commit a0fcb93676

View File

@ -563,6 +563,7 @@ namespace CapnpC.Generator
}
var typeNames = new HashSet<Name>(def.NestedTypes.Select(t => MakeTypeName(t)));
typeNames.Add(MakeTypeName(def));
foreach (var member in def.Fields)
{