cgen: fix interface type generation for generic struct (fix #22186) (#22189)

This commit is contained in:
Felipe Pena 2024-09-14 17:14:59 -03:00 committed by GitHub
parent 4eb087a347
commit 5fcfc27e50
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 129 additions and 6 deletions

View file

@ -626,6 +626,8 @@ fn (t Tree) struct_decl(node ast.StructDecl) &Node {
obj.add_terse('attrs', t.array_node_attr(node.attrs))
obj.add('end_comments', t.array_node_comment(node.end_comments))
obj.add_terse('embeds', t.array_node_embed(node.embeds))
obj.add('is_implements', t.bool_node(node.is_implements))
obj.add_terse('implements_types', t.array_node_type_expr(node.implements_types))
return obj
}