Closed Illeris closed 2 years ago
Possible fix:
` protected BaseListSyntax CreateBaseList() { if (!_inheritance.Any()) { return null; }
return BaseList(
SeparatedList<BaseTypeSyntax>(
_inheritance.Select(i => SimpleBaseType(TypeGenerator.Create(i))),
Enumerable.Range(0, _inheritance.Count - 1).Select(_ => SyntaxFactory.Token(SyntaxKind.CommaToken))));
}
`
A bit late but thanks for reporting and this is now fixed and will come in next nuget release.
Flaw in
protected BaseListSyntax CreateBaseList() { if (!_inheritance.Any()) { return null; }
No matter how many base classes, a "," is always appended to the base class list.