v2 / vlib / v / checker / tests / generic_fn_var_unresolved_err.out
35 lines · 35 sloc · 1.22 KB · 3d60410b605d001e54f280070d5f952da9de1112
Raw
1vlib/v/checker/tests/generic_fn_var_unresolved_err.vv:3:12: notice: unused parameter: `arg`
2 1 | module main
3 2 |
4 3 | fn func[T](arg string, mut val T) int {
5 | ~~~
6 4 | return 2
7 5 | }
8vlib/v/checker/tests/generic_fn_var_unresolved_err.vv:3:28: notice: unused parameter: `val`
9 1 | module main
10 2 |
11 3 | fn func[T](arg string, mut val T) int {
12 | ~~~
13 4 | return 2
14 5 | }
15vlib/v/checker/tests/generic_fn_var_unresolved_err.vv:8:7: error: `func` is a generic fn, you should pass its concrete types, e.g. func[int]
16 6 |
17 7 | fn main() {
18 8 | _ := func
19 | ~~~~
20 9 | _ := {
21 10 | 'test': func
22vlib/v/checker/tests/generic_fn_var_unresolved_err.vv:8:7: error: `func` is a generic fn, you should pass its concrete types, e.g. func[int]
23 6 |
24 7 | fn main() {
25 8 | _ := func
26 | ~~~~
27 9 | _ := {
28 10 | 'test': func
29vlib/v/checker/tests/generic_fn_var_unresolved_err.vv:10:11: error: `func` is a generic fn, you should pass its concrete types, e.g. func[int]
30 8 | _ := func
31 9 | _ := {
32 10 | 'test': func
33 | ~~~~
34 11 | }
35 12 | }
36