Open darwish opened 5 years ago
If a variable is assigned as part of a type switch, the variable can take on the type of the given case. This means that two case blocks can have identical bodies, but operate on different types, so it is impossible to collapse them.
case
Example: https://play.golang.org/p/9im-kLIPcEl
Version is 6.7.7
If a variable is assigned as part of a type switch, the variable can take on the type of the given
case
. This means that two case blocks can have identical bodies, but operate on different types, so it is impossible to collapse them.Example: https://play.golang.org/p/9im-kLIPcEl
Version is 6.7.7