mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
8 lines
325 B
Plaintext
8 lines
325 B
Plaintext
vlib/v/parser/tests/argumented_op_overloading_fn_op_overloaded_decl_err.vv:14:14: error: cannot overload `+=`, operator is implicitly overloaded because the `+` operator is overloaded
|
|
12 | }
|
|
13 |
|
|
14 | fn (p Point) += (q Point) Point {
|
|
| ~~
|
|
15 | return Point{p.x + q.x, p.y + q.y}
|
|
16 | }
|