| 1 | vlib/v/checker/tests/crystallib_struct_init_result_err.vv:9:13: notice: unused parameter: `path` |
| 2 | 7 | } |
| 3 | 8 | |
| 4 | 9 | fn get_file(path string, create bool) !Path { |
| 5 | | ~~~~ |
| 6 | 10 | return Path{} |
| 7 | 11 | } |
| 8 | vlib/v/checker/tests/crystallib_struct_init_result_err.vv:9:26: notice: unused parameter: `create` |
| 9 | 7 | } |
| 10 | 8 | |
| 11 | 9 | fn get_file(path string, create bool) !Path { |
| 12 | | ~~~~~~ |
| 13 | 10 | return Path{} |
| 14 | 11 | } |
| 15 | vlib/v/checker/tests/crystallib_struct_init_result_err.vv:16:12: error: get_file() returns `!Path`, so it should have either an `or {}` block, or `!` at the end |
| 16 | 14 | mut doc := Doc{ |
| 17 | 15 | content: 'this is a first line.' |
| 18 | 16 | path: get_file('config.md', true) |
| 19 | | ~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 20 | 17 | } |
| 21 | 18 | println('First println\n' + doc.content + '\n') |
| 22 | |