testdata for (IDEA-128766)

This commit is contained in:
Anna Kozlova
2014-08-21 16:53:23 +04:00
parent b5229e305b
commit 5e425d9eac
2 changed files with 24 additions and 0 deletions

View File

@@ -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);
}
}

View File

@@ -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);