mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 00:11:26 +07:00
new inference: initial tests
This commit is contained in:
+18
@@ -0,0 +1,18 @@
|
||||
/** @noinspection UnusedDeclaration*/
|
||||
interface TestIF2<T> extends TestIF3<T> {}
|
||||
|
||||
/** @noinspection UnusedDeclaration*/
|
||||
interface TestIF<T extends TestIF2<? extends Test2>> {
|
||||
void run(T o1);
|
||||
}
|
||||
|
||||
/** @noinspection UnusedDeclaration*/
|
||||
interface TestIF3<T> {}
|
||||
|
||||
class Test2 {}
|
||||
|
||||
class Test {
|
||||
public void test(TestIF<?> testIF) {
|
||||
testIF.run<error descr="'run(capture<? extends TestIF2<? extends Test2>>)' in 'TestIF' cannot be applied to '()'">()</error>;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user