| 1 | struct DB { |
| 2 | name string |
| 3 | } |
| 4 | |
| 5 | struct DxB { |
| 6 | name string |
| 7 | } |
| 8 | |
| 9 | struct DeclExprA { |
| 10 | name string |
| 11 | } |
| 12 | |
| 13 | struct AStructWithAVeryLongName { |
| 14 | name string |
| 15 | } |
| 16 | |
| 17 | fn test_struct_names_can_be_used_for_creating_them() { |
| 18 | a := DB{} |
| 19 | println(a) |
| 20 | assert true |
| 21 | b := DxB{} |
| 22 | println(b) |
| 23 | assert true |
| 24 | c := DeclExprA{} |
| 25 | println(c) |
| 26 | assert true |
| 27 | d := AStructWithAVeryLongName{} |
| 28 | println(d) |
| 29 | assert true |
| 30 | } |
| 31 |