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

10 lines · 215 bytes Raw Blame History
1// expect: IMMUTABLE_ASSIGN object=h line=7
2fn f() -> i64 {
3 pool p: [i64; 2] {
4 let h: handle p = p.alloc(1);
5 p.free(h);
6 let g: handle p = p.alloc(2);
7 h = g;
8 }
9 return 0;
10}