mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-03 15:50:52 +07:00
new inference: capture implicit param types (IDEA-132716)
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
interface A<T> {
|
||||
}
|
||||
|
||||
interface B<BT> {
|
||||
void method(BT arg);
|
||||
}
|
||||
|
||||
class Test {
|
||||
public static void test() {
|
||||
method1(Test::<error descr="Cannot resolve method 'method2'">method2</error>);
|
||||
}
|
||||
|
||||
static <M> void method1(B<A<? super M>> arg) { }
|
||||
|
||||
static void method2(A<? super String> arg) { }
|
||||
}
|
||||
Reference in New Issue
Block a user