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 / h_immutable_handle.osc
| 1 | // expect: IMMUTABLE_ASSIGN object=h line=7 |
| 2 | fn 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 | } |