fix: emulate struct by interface{} only for recursive struct types

This commit is contained in:
Marc Vertes
2019-12-16 19:00:07 +01:00
committed by Traefiker Bot
parent 7a0c09f5eb
commit 4f93be7f19
5 changed files with 43 additions and 2 deletions

19
_test/struct29.go Normal file
View 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