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