v2 / vlib / v / checker / tests / option_interface_mismatch.out
19 lines · 19 sloc · 743 bytes · 3d60410b605d001e54f280070d5f952da9de1112
Raw
1vlib/v/checker/tests/option_interface_mismatch.vv:11:12: notice: condition is always true
2 9 |
3 10 | fn give_string(line string) ?MObject {
4 11 | return if true { 'string' } else { 'string' }
5 | ~~~~
6 12 | }
7vlib/v/checker/tests/option_interface_mismatch.vv:10:16: notice: unused parameter: `line`
8 8 | }
9 9 |
10 10 | fn give_string(line string) ?MObject {
11 | ~~~~
12 11 | return if true { 'string' } else { 'string' }
13 12 | }
14vlib/v/checker/tests/option_interface_mismatch.vv:11:9: error: mismatched types `?MObject` and `string`
15 9 |
16 10 | fn give_string(line string) ?MObject {
17 11 | return if true { 'string' } else { 'string' }
18 | ~~
19 12 | }
20