diff --git a/vlib/v/fmt/struct.v b/vlib/v/fmt/struct.v index 407f5daa46ee96..8355b5d23a8d3f 100644 --- a/vlib/v/fmt/struct.v +++ b/vlib/v/fmt/struct.v @@ -38,7 +38,7 @@ pub fn (mut f Fmt) struct_decl(node ast.StructDecl, is_anon bool) { if i < node.implements_types.len - 1 { f.write(', ') } - f.mark_types_import_as_used(t) + f.mark_types_import_as_used(t.typ) } } // Calculate the alignments first