You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
type Elem1 struct {
E Elem1
E1 int
}
type Elem2 struct {
E Elem2
E1 int
}
type A struct {
B Elem1
}
type C struct {
B Elem2
}
a := new(A)
c := new(C)
copy(c, a)
will panic
The text was updated successfully, but these errors were encountered:
Like this
will panic
The text was updated successfully, but these errors were encountered: