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

7 lines · 158 bytes Raw Blame History
1// expect: IMMUTABLE_ASSIGN object=x line=5
2// assignment to a binding declared without `mut`.
3fn f() -> i32 {
4 let x: i32 = 1;
5 x = 2;
6 return x;
7}