Skip to content

Commit

Permalink
Fixed bug with inheritance and extra comma (#71)
Browse files Browse the repository at this point in the history
  • Loading branch information
MilleBo authored Dec 26, 2021
1 parent 277fea5 commit 7cfa63f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Testura.Code/Builders/Base/TypeBuilderBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ protected BaseListSyntax CreateBaseList()
return BaseList(
SeparatedList<BaseTypeSyntax>(
_inheritance.Select(i => SimpleBaseType(TypeGenerator.Create(i))),
_inheritance.Select(i => Token(SyntaxKind.CommaToken))));
_inheritance.Take(_inheritance.Count - 1).Select(i => Token(SyntaxKind.CommaToken))));
}
}
}

0 comments on commit 7cfa63f

Please sign in to comment.