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_value_borrow.osc
| 1 | // expect: SLICE_VALUE object=b line=7 |
| 2 | // transition: borrow of a slice |
| 3 | fn g(a: &[u64; 2]) -> u64 { |
| 4 | return a[0]; |
| 5 | } |
| 6 | fn f(b: bytes) -> u64 { |
| 7 | return g(&b); |
| 8 | } |