raz / test / msg / ConstAssign.err

5 lines · 263 B · raw · history · last change b13f87f8

1conform/err/ConstAssign.raz:5:5: error: r.n is only read here, and can't be changed
2 5 | r.n := 1;
3 | ^^^
4help: a const parameter, a constant, and the names a match gives their fields, are only read: take a var parameter to change it
5raz: 1 error