type (
T0 []string
T1 []string
T2 struct{ a, b int }
T3 struct{ a, c int }
T4 func(int, float64) *T0
T5 func(x int, y float64) *[]string
)
T0 and T1 are different because they are named types with distinct declarations;
Go language specification里面关于类型是否相同有这样一句话。。。
这个T0和T1为什么不相同?
有疑问加站长微信联系(非本文作者)