From 58d7d66dbbb8b1430273e4c5c41dedec450dc6e2 Mon Sep 17 00:00:00 2001 From: Raymond Zhang Date: Mon, 28 Oct 2024 10:06:48 -0400 Subject: [PATCH] Small fix. --- sema/gen/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sema/gen/main.go b/sema/gen/main.go index c203adf18..49fdaf24b 100644 --- a/sema/gen/main.go +++ b/sema/gen/main.go @@ -609,7 +609,7 @@ func (g *generator) VisitCompositeOrInterfaceDeclaration(decl ast.ConformingDecl if generateSimpleType { typeVarDecl = simpleTypeLiteral(typeDec) } else { - typeVarDecl = compositeOrInterfaceTypeExpr(typeDec, isCompositeType) + typeVarDecl = compositeOrInterfaceTypeExpr(typeDec, isInterfaceType) } fullTypeName := typeDec.fullTypeName @@ -2065,7 +2065,7 @@ func compositeOrInterfaceTypeExpr(ty *typeDecl, isInterfaceType bool) dst.Expr { &dst.DeclStmt{ Decl: goVarDecl( typeVarName, - compositeOrInterfaceTypeLiteral(ty, isCompositeType), + compositeOrInterfaceTypeLiteral(ty, isInterfaceType), ), }, }