omega-mv
Omega: a language for verified programs, semantic identity and machine realization. Seed-born work and existing implementations have distinct provenance.
Brought by drakestapleton
omega-mv / tests / compiler / neg / tm_int_condition.osc
| 1 | // expect: TYPE_MISMATCH object=if line=4 |
| 2 | // an integer is not a condition. |
| 3 | fn f(x: i32) -> i32 { |
| 4 | if x { return 1; } |
| 5 | return 0; |
| 6 | } |