mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
look at correct scope owner
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user