Fixed loading variance from alternative signature.

This commit is contained in:
Evgeny Gerashchenko
2012-11-13 13:00:31 +04:00
parent c5e9deb906
commit 9177080d8b
6 changed files with 41 additions and 2 deletions
@@ -0,0 +1,12 @@
package test;
import java.util.*;
import jet.runtime.typeinfo.KotlinSignature;
public class CustomVariance {
@KotlinSignature("fun foo(): MutableList<out Number>")
public List<Number> foo() {
throw new UnsupportedOperationException();
}
}
@@ -0,0 +1,7 @@
package test
import java.util.*
public open class CustomVariance : Object() {
public open fun foo() : MutableList<out Number> = throw UnsupportedOperationException()
}
@@ -0,0 +1,6 @@
namespace test
public open class test.CustomVariance : java.lang.Object {
public final /*constructor*/ fun <init>(): test.CustomVariance
public open fun foo(): jet.MutableList<out jet.Number>
}