vxx2 / vlib / v / checker / tests / struct_init_deprecations.out
35 lines · 35 sloc · 1.44 KB · 9a0435db057d090aa084aff1c2a6317da5d64a6f
Raw
1vlib/v/checker/tests/struct_init_deprecations.vv:5:9: notice: struct `v.checker.tests.module_with_deprecated_structs.Present` will be deprecated after 2999-03-01, and will become an error after 2999-08-28; use Future instead
2 3 | fn init_deprecated_structs() {
3 4 | o := m.Old{}
4 5 | p := m.Present{}
5 | ~~~~~~~~~
6 6 | dump(o)
7 7 | dump(p)
8vlib/v/checker/tests/struct_init_deprecations.vv:15:3: notice: field `d` will be deprecated after 2999-03-01, and will become an error after 2999-08-28; d use Xyz.a instead
9 13 | b: 1
10 14 | c: 2
11 15 | d: 3
12 | ~~~~
13 16 | }
14 17 | dump(x)
15vlib/v/checker/tests/struct_init_deprecations.vv:13:3: warning: field `b` has been deprecated
16 11 | x := m.Xyz{
17 12 | a: 0
18 13 | b: 1
19 | ~~~~
20 14 | c: 2
21 15 | d: 3
22vlib/v/checker/tests/struct_init_deprecations.vv:4:9: error: struct `v.checker.tests.module_with_deprecated_structs.Old` has been deprecated since 2021-03-01; use New instead
23 2 |
24 3 | fn init_deprecated_structs() {
25 4 | o := m.Old{}
26 | ~~~~~
27 5 | p := m.Present{}
28 6 | dump(o)
29vlib/v/checker/tests/struct_init_deprecations.vv:14:3: error: field `c` has been deprecated since 2021-03-01; c use Xyz.a instead
30 12 | a: 0
31 13 | b: 1
32 14 | c: 2
33 | ~~~~
34 15 | d: 3
35 16 | }
36