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 / st_move_wrong_struct.osc
| 1 | // expect: TYPE_MISMATCH object=b line=7 |
| 2 | // transition: type mismatch |
| 3 | struct A { v: u8 } |
| 4 | struct B { v: u8 } |
| 5 | fn f() -> u8 { |
| 6 | let a: own A = A { v: 1 }; |
| 7 | let b: own B = a; |
| 8 | return b.v; |
| 9 | } |