Skip to content

Commit

Permalink
Small fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
RZhang05 committed Oct 28, 2024
1 parent 46d882c commit 58d7d66
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sema/gen/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -2065,7 +2065,7 @@ func compositeOrInterfaceTypeExpr(ty *typeDecl, isInterfaceType bool) dst.Expr {
&dst.DeclStmt{
Decl: goVarDecl(
typeVarName,
compositeOrInterfaceTypeLiteral(ty, isCompositeType),
compositeOrInterfaceTypeLiteral(ty, isInterfaceType),
),
},
}
Expand Down

0 comments on commit 58d7d66

Please sign in to comment.