Files
openide/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/lambda/newMethodRef/ReferencesToPolymorphicMethod.java
Anna Kozlova 9355c487e2 reverted java highlighting: give up check of @PolymorphicSignature methods (IDEA-251449)
appeared to be a javac bug

GitOrigin-RevId: 1d17221830606f5bdc8d0db78fa97f94e9548799
2020-10-07 07:46:32 +00:00

10 lines
302 B
Java

import java.lang.invoke.MethodHandle;
class MyTest {
private void m(MethodHandle handle) {
I stringSupplier = <error descr="Bad return type in method reference: cannot convert java.lang.Object to java.lang.String">handle::invokeExact</error>;
}
}
interface I {
String n() throws Throwable;
}