v2 / vlib / v / parser / tests / argumented_op_overloading_fn_decl_err.out
7 lines · 7 sloc · 292 bytes · b487c9d38ed276f2e750383592b5bf73a4deed03
Raw
1vlib/v/parser/tests/argumented_op_overloading_fn_decl_err.vv:10:14: error: cannot overload `+=`, overload `+` and `+=` will be automatically generated
2 8 | }
3 9 |
4 10 | fn (p Point) += (q Point) Point {
5 | ~~
6 11 | return Point{p.x + q.x, p.y + q.y}
7 12 | }
8