interplane.Get Omega
Read in your language

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

branch main Branches Tags History

omega-mv / tests / compiler / neg / slice_alias_cells_and_bytes.osc

8 lines · 189 bytes Raw Blame History
1// expect: TYPE_MISMATCH object=return line=7
2// transition: type mismatch
3fn two(a: cells, b: bytes) -> u64 {
4 return a[0] + b[0];
5}
6fn alias(c: cells) -> u64 {
7 return two(c, c);
8}