From c39f0a7cb75af54384088ac4c651e338495b429d Mon Sep 17 00:00:00 2001 From: zakuro Date: Fri, 15 Jan 2021 08:17:26 +0900 Subject: [PATCH] ast: add str for AssertStmt (#8021) --- vlib/v/ast/str.v | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vlib/v/ast/str.v b/vlib/v/ast/str.v index 5ad633f63c..199d851ffa 100644 --- a/vlib/v/ast/str.v +++ b/vlib/v/ast/str.v @@ -338,6 +338,9 @@ pub fn (node &BranchStmt) str() string { pub fn (node Stmt) str() string { match node { + AssertStmt { + return 'assert $node.expr' + } AssignStmt { mut out := '' for i, left in node.left {