Supported star projection in alternative signatures.

This commit is contained in:
Evgeny Gerashchenko
2012-11-29 19:15:03 +04:00
parent 91825a404c
commit 46a485da01
6 changed files with 56 additions and 5 deletions
@@ -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 {
}
}