Supported star projection in alternative signatures.
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
package test;
|
||||
|
||||
import jet.runtime.typeinfo.KotlinSignature;
|
||||
|
||||
public final class StarProjection {
|
||||
@KotlinSignature("fun foo(): MyClass<*>")
|
||||
public final MyClass<?> foo() {
|
||||
throw new UnsupportedOperationException();
|
||||
}
|
||||
|
||||
public interface MyClass<T extends CharSequence> {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package test
|
||||
|
||||
public final class StarProjection: Object() {
|
||||
public final fun foo(): MyClass<*> = throw UnsupportedOperationException()
|
||||
|
||||
public trait MyClass<T: CharSequence?>: Object
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
namespace test
|
||||
|
||||
public final class test.StarProjection : java.lang.Object {
|
||||
public final /*constructor*/ fun <init>(): test.StarProjection
|
||||
public final fun foo(): test.StarProjection.MyClass<out jet.CharSequence?>
|
||||
public abstract trait test.StarProjection.MyClass</*0*/ T : jet.CharSequence?> : java.lang.Object {
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user