mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-21 22:11:40 +07:00
method refs: patch getClass return value in the same way it is done in PsiMethodCallExpression
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
import java.util.List;
|
||||
class GetClassTest {
|
||||
interface GetCl {
|
||||
Class<? extends List> _();
|
||||
}
|
||||
|
||||
interface GetClReturnTypeProblems {
|
||||
Class<List<String>> _();
|
||||
}
|
||||
|
||||
void test(int[] iarr, List<String> ls) {
|
||||
GetCl c4 = ls::getClass;
|
||||
<error descr="Incompatible types. Found: '<method reference>', required: 'GetClassTest.GetClReturnTypeProblems'">GetClReturnTypeProblems c5 = ls::getClass;</error>
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user