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
package main
type Type interface {
Size() int64
}
type ArrayType struct {
Type Type
}
func zeroArray(t *Type) {
at, _ := (*t).(*ArrayType)
println(at.Type) // shouldn't be a error
println(at.Type.Size) // shouldn't be a error
}