mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-22 06:21:25 +07:00
testdata for (IDEA-128766)
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
class Test {
|
||||
|
||||
static class TKey<T> {}
|
||||
|
||||
public interface Getter {
|
||||
<T> T getValue(TKey<T> key);
|
||||
}
|
||||
|
||||
public static <TK extends TKey<?>> TK getAKey(TK tKeySuffix) {
|
||||
return tKeySuffix;
|
||||
}
|
||||
|
||||
static final TKey<Double> KEY_D = new TKey<>();
|
||||
public static void f(Getter getter) {
|
||||
double d1 = getter.getValue(KEY_D);
|
||||
double d2 = getter.getValue(getAKey(KEY_D));
|
||||
TKey<Double> aKey = getAKey(KEY_D);
|
||||
double d3 = getter.getValue(aKey);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user