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 / uam_after_let_move.osc

7 lines · 179 bytes Raw Blame History
1// expect: USE_AFTER_MOVE object=a line=6
2// transition: use after move
3fn f() -> i64 {
4 let a: own [i64; 4] = alloc(1);
5 let b: own [i64; 4] = a;
6 return a[0] + b[0];
7}