We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 05e2f5d commit 2e74785Copy full SHA for 2e74785
src/reflect/type.go
@@ -976,7 +976,7 @@ func (t *rawType) FieldAlign() int {
976
// AssignableTo returns whether a value of type t can be assigned to a variable
977
// of type u.
978
func (t *rawType) AssignableTo(u Type) bool {
979
- if u := u.(*rawType); t == u || t.underlying() == u || t == u.underlying() {
+ if t.underlying() == u.(*rawType).underlying() {
980
return true
981
}
982
0 commit comments