diff --git a/vlib/v/ast/str.v b/vlib/v/ast/str.v index eae56fc4ce..303f2597a4 100644 --- a/vlib/v/ast/str.v +++ b/vlib/v/ast/str.v @@ -348,6 +348,9 @@ pub fn (node Stmt) str() string { FnDecl { return 'fn ${node.name}() { $node.stmts.len stmts }' } + StructDecl { + return 'struct $node.name { $node.fields.len fields }' + } else { return '[unhandled stmt str type: ${typeof(node)} ]' }