look at correct scope owner

This commit is contained in:
Dmitry Jemerov
2013-02-05 21:35:33 +01:00
parent 2be20a61e0
commit baed9c4be6
@@ -448,7 +448,7 @@ public class PyReferenceImpl implements PsiReferenceEx, PsiPolyVariantReference
// we shadow their name or they shadow ours (PY-6241)
if (resolveResult instanceof PsiNamedElement && resolveResult instanceof ScopeOwner && element instanceof ScopeOwner &&
ourScopeOwner == ScopeUtil.getScopeOwner(resolveResult)) {
theirScopeOwner == ScopeUtil.getScopeOwner(resolveResult)) {
return true;
}