| 1 | vlib/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 | } |
| 7 | vlib/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 | } |
| 14 | vlib/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 | |