mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-11-13 00:33:59 +07:00
skip inference for incompatible method references
EA-103416 - assert: PsiMethodReferenceCompatibilityConstraint.getSubstitutor
This commit is contained in:
1 parent
aa1cb5fff1
commit
9e20e117d6
3 files changed
+16
-4
No files matched your search
+10
@@ -0,0 +1,10 @@
|
||||
import java.util.function.IntFunction;
|
||||
|
||||
class Outer<K> {
|
||||
public Outer() { }
|
||||
|
||||
{
|
||||
//wrong number of parameters as well as a wrong expected type
|
||||
final IntFunction<Outer[]> aNew = <error descr="Bad return type in method reference: cannot convert Outer to Outer[]">Outer::new</error>;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user