Added test for loading Foo<?> type from Java.
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
package test;
|
||||
|
||||
public final class UnboundWildcard {
|
||||
public final MyClass<?> foo() {
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
|
||||
public interface MyClass<T extends CharSequence> {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package test
|
||||
|
||||
public final class UnboundWildcard: Object() {
|
||||
public final fun foo(): MyClass<*>? = throw UnsupportedOperationException()
|
||||
|
||||
public trait MyClass<T: CharSequence?>: Object
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
namespace test
|
||||
|
||||
public final class test.UnboundWildcard : java.lang.Object {
|
||||
public final /*constructor*/ fun <init>(): test.UnboundWildcard
|
||||
public final fun foo(): test.UnboundWildcard.MyClass<out jet.CharSequence?>?
|
||||
public abstract trait test.UnboundWildcard.MyClass</*0*/ T : jet.CharSequence?> : java.lang.Object {
|
||||
}
|
||||
}
|
||||
@@ -149,6 +149,11 @@ public class LoadJavaTestGenerated extends AbstractLoadJavaTest {
|
||||
doTest("compiler/testData/loadJava/TwoFields.java");
|
||||
}
|
||||
|
||||
@TestMetadata("UnboundWildcard.java")
|
||||
public void testUnboundWildcard() throws Exception {
|
||||
doTest("compiler/testData/loadJava/UnboundWildcard.java");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/loadJava/annotation")
|
||||
public static class Annotation extends AbstractLoadJavaTest {
|
||||
public void testAllFilesPresentInAnnotation() throws Exception {
|
||||
|
||||
+5
@@ -1039,6 +1039,11 @@ public class LazyResolveNamespaceComparingTestGenerated extends AbstractLazyReso
|
||||
doTestSinglePackage("compiler/testData/loadJava/TwoFields.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("UnboundWildcard.kt")
|
||||
public void testUnboundWildcard() throws Exception {
|
||||
doTestSinglePackage("compiler/testData/loadJava/UnboundWildcard.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("compiler/testData/loadJava/annotation")
|
||||
public static class Annotation extends AbstractLazyResolveNamespaceComparingTest {
|
||||
public void testAllFilesPresentInAnnotation() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user