Add test for obsolete issue
#KT-4609 Obsolete
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
package test;
|
||||
|
||||
import java.lang.CharSequence;
|
||||
|
||||
public class WildcardBounds {
|
||||
static class A<T> {}
|
||||
|
||||
void foo(A<? extends CharSequence> x, A<? super String> y) {}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
package test
|
||||
|
||||
public open class WildcardBounds {
|
||||
public constructor WildcardBounds()
|
||||
public/*package*/ open fun foo(/*0*/ p0: test.WildcardBounds.A<out kotlin.CharSequence!>!, /*1*/ p1: test.WildcardBounds.A<in kotlin.String!>!): kotlin.Unit
|
||||
|
||||
public/*package*/ open class A</*0*/ T : kotlin.Any!> {
|
||||
public/*package*/ constructor A</*0*/ T : kotlin.Any!>()
|
||||
}
|
||||
}
|
||||
@@ -283,6 +283,12 @@ public class LoadJavaTestGenerated extends AbstractLoadJavaTest {
|
||||
doTestCompiledJava(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("WildcardBounds.java")
|
||||
public void testWildcardBounds() throws Exception {
|
||||
String fileName = JetTestUtils.navigationMetadata("compiler/testData/loadJava/compiledJava/WildcardBounds.java");
|
||||
doTestCompiledJava(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/loadJava/compiledJava/annotations")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
|
||||
+6
@@ -3334,6 +3334,12 @@ public class JvmRuntimeDescriptorLoaderTestGenerated extends AbstractJvmRuntimeD
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("WildcardBounds.java")
|
||||
public void testWildcardBounds() throws Exception {
|
||||
String fileName = JetTestUtils.navigationMetadata("compiler/testData/loadJava/compiledJava/WildcardBounds.java");
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/loadJava/compiledJava/annotations")
|
||||
@TestDataPath("$PROJECT_ROOT")
|
||||
@RunWith(JUnit3RunnerWithInners.class)
|
||||
|
||||
Reference in New Issue
Block a user