diff --git a/src/Testura.Code/Builders/Base/TypeBuilderBase.cs b/src/Testura.Code/Builders/Base/TypeBuilderBase.cs index ac072aa..31ade19 100644 --- a/src/Testura.Code/Builders/Base/TypeBuilderBase.cs +++ b/src/Testura.Code/Builders/Base/TypeBuilderBase.cs @@ -178,7 +178,7 @@ protected BaseListSyntax CreateBaseList() return BaseList( SeparatedList( _inheritance.Select(i => SimpleBaseType(TypeGenerator.Create(i))), - _inheritance.Select(i => Token(SyntaxKind.CommaToken)))); + _inheritance.Take(_inheritance.Count - 1).Select(i => Token(SyntaxKind.CommaToken)))); } } }