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_value_borrow.osc

8 lines · 163 bytes Raw Blame History
1// expect: SLICE_VALUE object=b line=7
2// transition: borrow of a slice
3fn g(a: &[u64; 2]) -> u64 {
4 return a[0];
5}
6fn f(b: bytes) -> u64 {
7 return g(&b);
8}