fix: emulate struct by interface{} only for recursive struct types
This commit is contained in:
committed by
Traefiker Bot
parent
7a0c09f5eb
commit
4f93be7f19
19
_test/struct29.go
Normal file
19
_test/struct29.go
Normal file
@@ -0,0 +1,19 @@
|
||||
package main
|
||||
|
||||
type T1 struct {
|
||||
A []T2
|
||||
B []T2
|
||||
}
|
||||
|
||||
type T2 struct {
|
||||
name string
|
||||
}
|
||||
|
||||
var t = T1{}
|
||||
|
||||
func main() {
|
||||
println("ok")
|
||||
}
|
||||
|
||||
// Output:
|
||||
// ok
|
||||
Reference in New Issue
Block a user