15 lines
471 B
Plaintext
15 lines
471 B
Plaintext
vlib/v/checker/tests/sum_type_infix_err.vv:5:9: error: cannot use operator `+` with `Abc`
|
|
3 | fn main() {
|
|
4 | x := Abc(0)
|
|
5 | _ := x + Abc(5)
|
|
| ^
|
|
6 | _ := 123 + x
|
|
7 | _ = unsafe{&x + 5}
|
|
vlib/v/checker/tests/sum_type_infix_err.vv:6:11: error: cannot use operator `+` with `Abc`
|
|
4 | x := Abc(0)
|
|
5 | _ := x + Abc(5)
|
|
6 | _ := 123 + x
|
|
| ^
|
|
7 | _ = unsafe{&x + 5}
|
|
8 | }
|