From 7cfa63f7750e305569039fd2f80e1266763a7b1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mille=20Bostr=C3=B6m?= Date: Sun, 26 Dec 2021 17:01:00 +0100 Subject: [PATCH] Fixed bug with inheritance and extra comma (#71) --- src/Testura.Code/Builders/Base/TypeBuilderBase.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)))); } } }