mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-19 21:11:28 +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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -221,6 +221,9 @@ public class GraphInferenceHighlightingTest extends LightDaemonAnalyzerTestCase
|
||||
public void testIDEA127928() throws Exception {
|
||||
doTest();
|
||||
}
|
||||
public void testIDEA128766() throws Exception {
|
||||
doTest();
|
||||
}
|
||||
|
||||
private void doTest() throws Exception {
|
||||
doTest(false);
|
||||
|
||||
Reference in New Issue
Block a user