vxx2 / vlib / v / checker / tests / crystallib_struct_init_result_err.out
21 lines · 21 sloc · 897 bytes · 3d60410b605d001e54f280070d5f952da9de1112
Raw
1vlib/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 | }
8vlib/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 | }
15vlib/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