Added test with @KotlinSignature on method returning array.

#KT-2840 can't reproduce
This commit is contained in:
Evgeny Gerashchenko
2012-12-17 18:36:51 +04:00
parent 4775329fb7
commit 68d8b6b4c3
5 changed files with 33 additions and 0 deletions
@@ -0,0 +1,10 @@
package test;
import jet.runtime.typeinfo.KotlinSignature;
public class ArrayType {
@KotlinSignature("fun foo(): Array<String>")
public String[] foo() {
throw new UnsupportedOperationException();
}
}
@@ -0,0 +1,7 @@
package test
public open class ArrayType : Object() {
public open fun foo(): Array<String> {
throw UnsupportedOperationException()
}
}
@@ -0,0 +1,6 @@
namespace test
public open class test.ArrayType : java.lang.Object {
public final /*constructor*/ fun <init>(): test.ArrayType
public open fun foo(): jet.Array<jet.String>
}