2021-01-31 12:05:17 +03:00
|
|
|
struct DB {
|
|
|
|
name string
|
|
|
|
}
|
|
|
|
|
|
|
|
struct DxB {
|
|
|
|
name string
|
|
|
|
}
|
2020-04-07 22:03:20 +03:00
|
|
|
|
2021-01-31 12:05:17 +03:00
|
|
|
struct DeclExprA {
|
|
|
|
name string
|
|
|
|
}
|
|
|
|
|
|
|
|
struct AStructWithAVeryLongName {
|
|
|
|
name string
|
|
|
|
}
|
2020-04-07 22:03:20 +03:00
|
|
|
|
|
|
|
fn test_struct_names_can_be_used_for_creating_them() {
|
2020-04-12 02:41:26 +03:00
|
|
|
a := DB{}
|
2021-01-31 12:05:17 +03:00
|
|
|
println(a)
|
2020-04-12 02:41:26 +03:00
|
|
|
assert true
|
|
|
|
b := DxB{}
|
2021-01-31 12:05:17 +03:00
|
|
|
println(b)
|
2020-04-12 02:41:26 +03:00
|
|
|
assert true
|
|
|
|
c := DeclExprA{}
|
2021-01-31 12:05:17 +03:00
|
|
|
println(c)
|
2020-04-12 02:41:26 +03:00
|
|
|
assert true
|
|
|
|
d := AStructWithAVeryLongName{}
|
2021-01-31 12:05:17 +03:00
|
|
|
println(d)
|
2020-04-12 02:41:26 +03:00
|
|
|
assert true
|
2020-04-07 22:03:20 +03:00
|
|
|
}
|