From baed9c4be62672297e39dbba917657cc74170d52 Mon Sep 17 00:00:00 2001 From: Dmitry Jemerov Date: Tue, 5 Feb 2013 20:48:52 +0100 Subject: [PATCH] look at correct scope owner --- .../jetbrains/python/psi/impl/references/PyReferenceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/src/com/jetbrains/python/psi/impl/references/PyReferenceImpl.java b/python/src/com/jetbrains/python/psi/impl/references/PyReferenceImpl.java index a68d688047f5..2cb1e79ce8b7 100644 --- a/python/src/com/jetbrains/python/psi/impl/references/PyReferenceImpl.java +++ b/python/src/com/jetbrains/python/psi/impl/references/PyReferenceImpl.java @@ -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; }