Files @ ed4fe8216eb0
Branch filter:

Location: CSY/reowolf/testdata/parser/counterexamples/out_of_order_assignment.pdl

MH
Fix binding- and assignment-expression related typing issues.

Simpler solutions are better, so the typechecker is back to normal.
Instead we simply make sure that assignment expression is never
nested under another expression, and binding expressions may only
be nested under LogicalAnd-expressions. If only I knew why I thought
type shenanigans were a good idea in the first place...
1
2
3
4
5
6
7
// It fails, so that is nice, but it fails due to the wrong reasons
// My bad: C-ism of declarations on top
bool some_function() {
    result_c = false;
    bool result_c = true;
    return result_c;
}