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_u32_plus_u64.osc
| 1 | // expect: TYPE_MISMATCH object=z line=4 |
| 2 | // no implicit widening: u32 + u64 is refused. |
| 3 | fn f(x: u32, y: u64) -> u64 { |
| 4 | let z: u64 = x + y; |
| 5 | return z; |
| 6 | } |