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 {
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user