mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-09 08:09:39 +07:00
test++
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
class A<T>{
|
||||
void foo(T t){}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
public class Extracted<R> {
|
||||
private final Test<R> test;
|
||||
private R myT;
|
||||
|
||||
public Extracted(Test<R> test) {
|
||||
this.test = test;
|
||||
}
|
||||
|
||||
void bar() {
|
||||
test.foo(myT);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
class Test<R> extends A <R>{
|
||||
|
||||
void foo(R t){}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
class A<T>{
|
||||
void foo(T t){}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
class Test<R> extends A <R>{
|
||||
public R myT;
|
||||
|
||||
void foo(R t){}
|
||||
|
||||
void bar(){
|
||||
foo(myT);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user