v2 / vlib / v / checker / tests / generic_fn_infinite_loop_limit_err.out
26 lines · 26 sloc · 1.18 KB · 3d60410b605d001e54f280070d5f952da9de1112
Raw
1vlib/v/checker/tests/generic_fn_infinite_loop_limit_err.vv:1:15: notice: unused parameter: `i`
2 1 | fn f1[T](x T, i int) T {
3 | ^
4 2 | return x
5 3 | }
6vlib/v/checker/tests/generic_fn_infinite_loop_limit_err.vv:6:2: warning: unused variable: `ff1`
7 4 |
8 5 | fn main() {
9 6 | ff1 := f1 // <-- missing e.g. `[int]`
10 | ~~~
11 7 | // ff1 := f1[int] <-- is a valid usage with generic return types that are not generic structs
12 8 | }
13vlib/v/checker/tests/generic_fn_infinite_loop_limit_err.vv:6:9: error: `f1` is a generic fn, you should pass its concrete types, e.g. f1[int]
14 4 |
15 5 | fn main() {
16 6 | ff1 := f1 // <-- missing e.g. `[int]`
17 | ~~
18 7 | // ff1 := f1[int] <-- is a valid usage with generic return types that are not generic structs
19 8 | }
20vlib/v/checker/tests/generic_fn_infinite_loop_limit_err.vv:6:9: error: `f1` is a generic fn, you should pass its concrete types, e.g. f1[int]
21 4 |
22 5 | fn main() {
23 6 | ff1 := f1 // <-- missing e.g. `[int]`
24 | ~~
25 7 | // ff1 := f1[int] <-- is a valid usage with generic return types that are not generic structs
26 8 | }
27