var _ Addifier = (*Adder)(nil)
这就是正常代码
var _ Addifier = (Adder)(nil)
这行不能过吧?GoLand 提示 can not convert nil to the type 'Adder'
【 在 sumanwang (sumanwang) 的大作中提到: 】
: type Addifier interface{ Add(a, b int32) int32 }
: type Adder struct{ name string }
: //go:noinline
: ...................
--
FROM 111.206.87.*