Open rebcabin opened 1 year ago
Ditto, this While
has an integer in the test-expr
pocket:
(deftest while-loop-test
(is (s/valid?
::asr/WhileLoop
(legacy
(WhileLoop
()
(NamedExpr
(Var 2 a)
(IntegerConstant 1 (Integer 4 []))
(Integer 4 []))
[(=
(Var 2 y)
(IntegerConstant 1 (Integer 4 []))
()
)]
)))))```
I think that's a bug. It should only be logical in both if
and ifexpr
.
I found this in one of the
stdout
example. It has anInteger
in the pocket. Seems too C-like.I spec it as valid for now: