1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

cgen: fix generics with multi generics struct receiver (#9853)

This commit is contained in:
yuyi
2021-04-23 20:17:57 +08:00
committed by GitHub
parent 49a2de562b
commit dd2002cc57
7 changed files with 40 additions and 8 deletions

View File

@@ -299,6 +299,7 @@ fn (mut p Parser) struct_decl() ast.StructDecl {
is_typedef: attrs.contains('typedef')
is_union: is_union
is_heap: attrs.contains('heap')
is_generic: generic_types.len > 0
generic_types: generic_types
attrs: attrs
}