don't calculate type of method expression which is located on the left side of assignment - assignment is invalid anyway

(EA-77049 - assert: PsiMethodCallExpressionImpl$TypeEvaluator.fun)
This commit is contained in:
Anna.Kozlova
2016-04-19 14:22:18 +02:00
parent 530b0b04e5
commit abf32b50d5
3 changed files with 26 additions and 1 deletions

View File

@@ -0,0 +1,18 @@
class Test {
public void myMethod()
{
foo ( <error descr="Variable expected">bar("")</error> = "");
}
private <T> T foo(final T bar) {
return null;
}
private <T> T foo(final String bar) {
return null;
}
private <S> S bar(final String s) {
return null;
}
}