skip inference for incompatible method references

EA-103416 - assert: PsiMethodReferenceCompatibilityConstraint.getSubstitutor
This commit is contained in:
Anna.Kozlova committed 2017-12-14 18:45:49 +01:00
1 parent aa1cb5fff1
commit 9e20e117d6
3 files changed
+16 -4

No files matched your search

@@ -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>;
}
}