翻译进度
1
分块数量
0
参与人数
Assignability
这是一篇协同翻译的文章,你可以点击『我来翻译』按钮来参与翻译。
A value x
is assignable to a variable of type T
("x
is assignable to T
") if one of the following conditions applies:
x
's type is identical toT
.x
's typeV
andT
have identical underlying types and at least one ofV
orT
is not a defined type.T
is an interface type andx
implementsT
.x
is a bidirectional channel value,T
is a channel type,x
's typeV
andT
have identical element types, and at least one ofV
orT
is not a defined type.x
is the predeclared identifiernil
andT
is a pointer, function, slice, map, channel, or interface type.x
is an untyped constant representable by a value of typeT
.
本文中的所有译文仅用于学习和交流目的,转载请务必注明文章译者、出处、和本文链接
我们的翻译工作遵照 CC 协议,如果我们的工作有侵犯到您的权益,请及时联系我们。