v2 / vlib / v / checker / tests / deprecate_any.out
43 lines · 43 sloc · 1.56 KB · 3d60410b605d001e54f280070d5f952da9de1112
Raw
1vlib/v/checker/tests/deprecate_any.vv:1:8: notice: the `any` type is deprecated and will be removed soon - either use an empty interface, or a sum type
2 1 | fn foo(a any) {}
3 | ^
4 2 |
5 3 | fn main() {
6vlib/v/checker/tests/deprecate_any.vv:5:7: notice: the `any` type is deprecated and will be removed soon - either use an empty interface, or a sum type
7 3 | fn main() {
8 4 | _ := []any{}
9 5 | _ := map[int]any{}
10 | ~~~~~~~~~~~~~
11 6 | _ := map[any]int{}
12 7 | }
13vlib/v/checker/tests/deprecate_any.vv:6:7: notice: the `any` type is deprecated and will be removed soon - either use an empty interface, or a sum type
14 4 | _ := []any{}
15 5 | _ := map[int]any{}
16 6 | _ := map[any]int{}
17 | ~~~~~~~~~~~~~
18 7 | }
19vlib/v/checker/tests/deprecate_any.vv:1:8: notice: unused parameter: `a`
20 1 | fn foo(a any) {}
21 | ^
22 2 |
23 3 | fn main() {
24vlib/v/checker/tests/deprecate_any.vv:4:7: error: cannot use type `any` here
25 2 |
26 3 | fn main() {
27 4 | _ := []any{}
28 | ~~~~~~
29 5 | _ := map[int]any{}
30 6 | _ := map[any]int{}
31vlib/v/checker/tests/deprecate_any.vv:5:7: error: cannot use type `any` here
32 3 | fn main() {
33 4 | _ := []any{}
34 5 | _ := map[int]any{}
35 | ~~~~~~~~~~~~~
36 6 | _ := map[any]int{}
37 7 | }
38vlib/v/checker/tests/deprecate_any.vv:6:7: error: cannot use type `any` here
39 4 | _ := []any{}
40 5 | _ := map[int]any{}
41 6 | _ := map[any]int{}
42 | ~~~~~~~~~~~~~
43 7 | }
44