revert (IDEA-157631)

This commit is contained in:
Anna Kozlova
2016-06-20 14:02:29 +03:00
parent ea5e1bc9f2
commit 2f550f3ba0
2 changed files with 2 additions and 2 deletions
@@ -134,7 +134,7 @@ public class PsiForeachStatementImpl extends CompositePsiElement implements PsiF
@Override
public boolean processDeclarations(@NotNull PsiScopeProcessor processor, @NotNull ResolveState state, PsiElement lastParent, @NotNull PsiElement place) {
processor.handleEvent(PsiScopeProcessor.Event.SET_DECLARATION_HOLDER, this);
if (lastParent == null || lastParent.getParent() != this /*|| lastParent == getIteratedValue()*/)
if (lastParent == null || lastParent.getParent() != this || lastParent == getIteratedValue())
// Parent element should not see our vars
return true;
@@ -181,7 +181,7 @@ public class a {
}
void forEachParam(java.io.File x) {
for (java.io.File f: <error descr="Variable 'f' might not have been initialized">f</error>.listFiles()) {
for (java.io.File f: <error descr="Cannot resolve symbol 'f'">f</error>.listFiles()) {
forEachParam(f);
}
}