[java] inference: completely ignore expressions over which overload resolution is started

logging for EA-241551 - NPE: MethodReferenceResolver$0$0.inferTypeArguments, as there is no reproducible example, still

GitOrigin-RevId: 46216cd8171479d14af2283cf9cd4a35e68d9b48
This commit is contained in:
Anna Kozlova
2022-07-04 11:47:40 +02:00
committed by intellij-monorepo-bot
parent 5ad2a37900
commit 3db82d3846
5 changed files with 55 additions and 15 deletions

View File

@@ -0,0 +1,17 @@
import java.util.function.BiFunction;
import java.util.function.Function;
public class Clazz {
<T> T foo(BiFunction<T, T, T> d) { return null;}
<T> T foo(Function<T, String> d) { return null;}
{
fooBar(foo(this::<caret>bar));
}
<K> void fooBar(K k) {}
}