| 1 | vlib/v/checker/tests/assign_immutable_reference_call_result_err.vv:17:16: notice: `ja` is immutable, cannot have a mutable reference to an immutable object |
| 2 | 15 | name: 'foo' |
| 3 | 16 | } |
| 4 | 17 | mut x := rere(ja) |
| 5 | | ~~ |
| 6 | 18 | x.name = 'bar' |
| 7 | 19 | } |
| 8 | vlib/v/checker/tests/assign_immutable_reference_call_result_err.vv:18:4: error: `x.name` aliases mutable data from an immutable value |
| 9 | 16 | } |
| 10 | 17 | mut x := rere(ja) |
| 11 | 18 | x.name = 'bar' |
| 12 | | ~~~~ |
| 13 | 19 | } |
| 14 |