Added test for loading Foo<?> type from Java.

This commit is contained in:
Evgeny Gerashchenko
2012-11-29 18:28:27 +04:00
parent 3d8b86040d
commit 91825a404c
5 changed files with 35 additions and 0 deletions
@@ -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 {
}
}