xo-reader: + block utest + assignment utest [wip, not passsing]

This commit is contained in:
Roland Conybeare 2024-08-27 16:23:33 -04:00
commit 22d4c6c601
2 changed files with 3 additions and 2 deletions

View file

@ -188,7 +188,7 @@ namespace xo {
scope log(XO_DEBUG(c_debug_flag));
log && log(xtag("exstype", this->exs_type_),
xtag("expr", expr));
xtag("expr", expr.promote()));
std::unique_ptr<exprstate> self = p_psm->pop_exprstate();

View file

@ -18,7 +18,8 @@ namespace xo {
//{"def foo : f64 = 2.0 * 3.14159265;"},
{"def foo = lambda (x : f64) 3.1415965;"},
{"def foo = lambda (x : f64, y : f64) 3.1415965;"},
{"def foo = lambda (x : f64) x;"}
{"def foo = lambda (x : f64) x;"},
{"def foo = lambda (x : f64) { def y = x * x; y; }"},
};
}