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

6 lines · 144 bytes Raw Blame History
1// expect: READ_ONLY_BORROW object=p line=5
2// transition: write through shared borrow
3struct P { x: i32, y: i32 }
4fn f(p: &P) {
5 p.x = 1;
6}