mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-18 12:31:26 +07:00
skip inference for incompatible method references
EA-103416 - assert: PsiMethodReferenceCompatibilityConstraint.getSubstitutor
This commit is contained in:
@@ -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