mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-02 05:11:29 +08:00
Add nested anonymous struct test
This commit is contained in:
parent
cc1a6a3d50
commit
4a8917ecbc
@ -884,6 +884,25 @@ func TestParseDirectory(t *testing.T) {
|
||||
Name: "int",
|
||||
},
|
||||
},
|
||||
{
|
||||
Name: "Address",
|
||||
Type: &ParameterType{
|
||||
Name: "anon2",
|
||||
IsStruct: true,
|
||||
Package: "main",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
"anon2": {
|
||||
Name: "anon2",
|
||||
Fields: []*Field{
|
||||
{
|
||||
Name: "Street",
|
||||
Type: &ParameterType{
|
||||
Name: "string",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
@ -12,7 +12,10 @@ type Person struct {
|
||||
Name string
|
||||
Parent *Person
|
||||
Details struct {
|
||||
Age int
|
||||
Age int
|
||||
Address struct {
|
||||
Street string
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user