aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/type.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/type.go')
-rw-r--r--src/runtime/type.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/runtime/type.go b/src/runtime/type.go
index bf54d54eb4..b3df3353ce 100644
--- a/src/runtime/type.go
+++ b/src/runtime/type.go
@@ -655,15 +655,15 @@ func typesEqual(t, v *_type, seen map[_typePair]struct{}) bool {
if len(st.fields) != len(sv.fields) {
return false
}
+ if st.pkgPath.name() != sv.pkgPath.name() {
+ return false
+ }
for i := range st.fields {
tf := &st.fields[i]
vf := &sv.fields[i]
if tf.name.name() != vf.name.name() {
return false
}
- if tf.name.pkgPath() != vf.name.pkgPath() {
- return false
- }
if !typesEqual(tf.typ, vf.typ, seen) {
return false
}