diff --git a/vlib/v/ast/ast.v b/vlib/v/ast/ast.v index 90c93c49eb..45586b783e 100644 --- a/vlib/v/ast/ast.v +++ b/vlib/v/ast/ast.v @@ -1534,14 +1534,15 @@ pub const ( } ) +// `assert a == 0, 'a is zero'` [minify] pub struct AssertStmt { pub: pos token.Pos extra_pos token.Pos pub mut: - expr Expr - extra Expr + expr Expr // `a == 0` + extra Expr // `'a is zero'` is_used bool // asserts are used in _test.v files, as well as in non -prod builds of all files } @@ -1557,8 +1558,8 @@ pub struct IfGuardExpr { pub: vars []IfGuardVar pub mut: - expr Expr - expr_type Type + expr Expr // `opt()` + expr_type Type // type of `opt()` } pub enum OrKind {