Added test with @KotlinSignature on method returning array.
#KT-2840 can't reproduce
This commit is contained in:
@@ -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>
|
||||
}
|
||||
@@ -250,6 +250,11 @@ public class LoadJavaTestGenerated extends AbstractLoadJavaTest {
|
||||
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.generators.tests.GenerateTests", new File("compiler/testData/loadJava/kotlinSignature"), "java", true);
|
||||
}
|
||||
|
||||
@TestMetadata("ArrayType.java")
|
||||
public void testArrayType() throws Exception {
|
||||
doTest("compiler/testData/loadJava/kotlinSignature/ArrayType.java");
|
||||
}
|
||||
|
||||
@TestMetadata("ConstructorWithNewTypeParams.java")
|
||||
public void testConstructorWithNewTypeParams() throws Exception {
|
||||
doTest("compiler/testData/loadJava/kotlinSignature/ConstructorWithNewTypeParams.java");
|
||||
|
||||
+5
@@ -1145,6 +1145,11 @@ public class LazyResolveNamespaceComparingTestGenerated extends AbstractLazyReso
|
||||
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.generators.tests.GenerateTests", new File("compiler/testData/loadJava/kotlinSignature"), "kt", true);
|
||||
}
|
||||
|
||||
@TestMetadata("ArrayType.kt")
|
||||
public void testArrayType() throws Exception {
|
||||
doTestSinglePackage("compiler/testData/loadJava/kotlinSignature/ArrayType.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("ConstructorWithNewTypeParams.kt")
|
||||
public void testConstructorWithNewTypeParams() throws Exception {
|
||||
doTestSinglePackage("compiler/testData/loadJava/kotlinSignature/ConstructorWithNewTypeParams.kt");
|
||||
|
||||
Reference in New Issue
Block a user