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 / slice_alias_cells_and_bytes.osc
| 1 | // expect: TYPE_MISMATCH object=return line=7 |
| 2 | // transition: type mismatch |
| 3 | fn two(a: cells, b: bytes) -> u64 { |
| 4 | return a[0] + b[0]; |
| 5 | } |
| 6 | fn alias(c: cells) -> u64 { |
| 7 | return two(c, c); |
| 8 | } |