ci: fix generics test
parent
73e097c1cb
commit
70564ae8b2
|
@ -6821,7 +6821,7 @@ fn (mut g Gen) type_default(typ_ ast.Type) string {
|
||||||
if field_sym.info is ast.Struct {
|
if field_sym.info is ast.Struct {
|
||||||
if field_sym.info.fields.len == 0
|
if field_sym.info.fields.len == 0
|
||||||
&& field_sym.info.embeds.len == 0 {
|
&& field_sym.info.embeds.len == 0 {
|
||||||
zero_str = '{EMPTY_STRUCT_INITIALIZATION}'
|
zero_str = '{}'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue