mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
test++
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
import p.Test;
|
||||
|
||||
class Usage {
|
||||
void bar(Test s) {
|
||||
s.foo(null);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package p;
|
||||
|
||||
public class Test {
|
||||
public void foo(String t) {
|
||||
System.out.println("Hello");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
import p1.*;
|
||||
class Usage {
|
||||
void bar(Super<String> s) {
|
||||
s.foo(null);
|
||||
}
|
||||
}
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
package p;
|
||||
import p1.*;
|
||||
public class Test extends Super<String> {}
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
package p1;
|
||||
public class Super<T>{
|
||||
public void foo(T t) {
|
||||
System.out.println("Hello");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user