| 1 | import v.checker.tests.module_with_deprecated_structs as m |
| 2 | |
| 3 | fn init_deprecated_structs() { |
| 4 | o := m.Old{} |
| 5 | p := m.Present{} |
| 6 | dump(o) |
| 7 | dump(p) |
| 8 | } |
| 9 | |
| 10 | fn init_deprecated_fields() { |
| 11 | x := m.Xyz{ |
| 12 | a: 0 |
| 13 | b: 1 |
| 14 | c: 2 |
| 15 | d: 3 |
| 16 | } |
| 17 | dump(x) |
| 18 | } |
| 19 | |
| 20 | fn main() { |
| 21 | init_deprecated_structs() |
| 22 | init_deprecated_fields() |
| 23 | } |
| 24 |