40 lines
1.2 KiB
Plaintext
40 lines
1.2 KiB
Plaintext
vlib/v/checker/tests/infix_err.vv:7:8: error: mismatched types `string` and `?string`
|
|
5 | return none
|
|
6 | }
|
|
7 | _ = '' + f()
|
|
| ^
|
|
8 | _ = f() + ''
|
|
9 | _ = f() + f()
|
|
vlib/v/checker/tests/infix_err.vv:8:9: error: mismatched types `?string` and `string`
|
|
6 | }
|
|
7 | _ = '' + f()
|
|
8 | _ = f() + ''
|
|
| ^
|
|
9 | _ = f() + f()
|
|
10 |
|
|
vlib/v/checker/tests/infix_err.vv:9:9: error: `+` cannot be used with `?string`
|
|
7 | _ = '' + f()
|
|
8 | _ = f() + ''
|
|
9 | _ = f() + f()
|
|
| ^
|
|
10 |
|
|
11 | _ = 4 + g()
|
|
vlib/v/checker/tests/infix_err.vv:11:7: error: `+` cannot be used with `?int`
|
|
9 | _ = f() + f()
|
|
10 |
|
|
11 | _ = 4 + g()
|
|
| ^
|
|
12 | _ = int(0) + g() // FIXME not detected
|
|
13 | _ = g() + int(3)
|
|
vlib/v/checker/tests/infix_err.vv:13:9: error: `+` cannot be used with `?int`
|
|
11 | _ = 4 + g()
|
|
12 | _ = int(0) + g() // FIXME not detected
|
|
13 | _ = g() + int(3)
|
|
| ^
|
|
14 | _ = g() + 3
|
|
vlib/v/checker/tests/infix_err.vv:14:9: error: `+` cannot be used with `?int`
|
|
12 | _ = int(0) + g() // FIXME not detected
|
|
13 | _ = g() + int(3)
|
|
14 | _ = g() + 3
|
|
| ^
|