diff --git a/lang/ast/ast.go b/lang/ast/ast.go index 0ef82b56..3643772d 100644 --- a/lang/ast/ast.go +++ b/lang/ast/ast.go @@ -192,7 +192,7 @@ func (n *Assert) Condition() *Expr { return n.rhs.Expr() } func NewAssert(condition *Expr) *Assert { return &Assert{ kind: KAssert, - lhs: condition.Node(), + rhs: condition.Node(), } }