fix tests. Rebinding for 'def' reference should do nothing because it references to an inferred variable's type or to a variable itself.

This commit is contained in:
Max Medvedev
2014-03-06 17:45:04 +04:00
parent 5a54361be1
commit 675fa42c80
@@ -242,6 +242,11 @@ public class GrVariableDeclarationImpl extends GrStubElementBase<EmptyStub> impl
public Object[] getVariants() {
return EMPTY_ARRAY;
}
@Override
public PsiElement bindToElement(@NotNull PsiElement element) throws IncorrectOperationException {
return getElement();
}
};
}
else {
@@ -257,6 +262,11 @@ public class GrVariableDeclarationImpl extends GrStubElementBase<EmptyStub> impl
public Object[] getVariants() {
return EMPTY_ARRAY;
}
@Override
public PsiElement bindToElement(@NotNull PsiElement element) throws IncorrectOperationException {
return getElement();
}
};
}
}