mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-08-26 15:27:45 +07:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
+10
@@ -0,0 +1,10 @@
|
||||
// "Make 'T' implement 'b'" "true"
|
||||
class a<T extends b<String>> {
|
||||
void f(b<String> r, T t) {
|
||||
r.g(t);
|
||||
}
|
||||
}
|
||||
interface b<T> {
|
||||
void g(b<T> t);
|
||||
}
|
||||
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
// "Make 'T' implement 'b'" "true"
|
||||
class a<T> {
|
||||
void f(b<String> r, T t) {
|
||||
r.g(<caret>t);
|
||||
}
|
||||
}
|
||||
interface b<T> {
|
||||
void g(b<T> t);
|
||||
}
|
||||
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
// "Create field 'foo'" "true"
|
||||
class Usage {
|
||||
|
||||
void usage(Generic<String> g, List<String> p) {
|
||||
g.foo = p;
|
||||
}
|
||||
}
|
||||
|
||||
class Generic<T> {
|
||||
|
||||
public List<T> foo;
|
||||
}
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
// "Create field 'foo'" "true"
|
||||
class Usage {
|
||||
|
||||
void usage(Generic<String> g, List<String>[] p) {
|
||||
g.foo = p;
|
||||
}
|
||||
}
|
||||
|
||||
class Generic<T> {
|
||||
|
||||
public List<T>[] foo;
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
// "Create field 'foo'" "true"
|
||||
class Usage {
|
||||
|
||||
void usage(Generic<String> g, List<String> p) {
|
||||
g.f<caret>oo = p;
|
||||
}
|
||||
}
|
||||
|
||||
class Generic<T> {
|
||||
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
// "Create field 'foo'" "true"
|
||||
class Usage {
|
||||
|
||||
void usage(Generic<String> g, List<String>[] p) {
|
||||
g.f<caret>oo = p;
|
||||
}
|
||||
}
|
||||
|
||||
class Generic<T> {
|
||||
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
// "Create method 'foo'" "true"
|
||||
interface Generic<T> {
|
||||
List<List<T>> foo();
|
||||
}
|
||||
|
||||
class Usage {
|
||||
|
||||
List<List<String>> usage(Generic<String> g) {
|
||||
return g.foo();
|
||||
}
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
// "Create method 'foo'" "true"
|
||||
interface Generic<T> {
|
||||
}
|
||||
|
||||
class Usage {
|
||||
|
||||
List<List<String>> usage(Generic<String> g) {
|
||||
return g.fo<caret>o();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user