Added test with vararg parameter in SAM interface.
This commit is contained in:
@@ -0,0 +1,5 @@
|
|||||||
|
package test;
|
||||||
|
|
||||||
|
public interface VarargParameter {
|
||||||
|
void f(String... strings);
|
||||||
|
}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
package test
|
||||||
|
|
||||||
|
public /*synthesized*/ fun VarargParameter(/*0*/ function: (jet.Array<jet.String?>) -> jet.Unit): test.VarargParameter
|
||||||
|
|
||||||
|
public trait VarargParameter : java.lang.Object {
|
||||||
|
public abstract fun f(/*0*/ vararg p0: jet.String? /*jet.Array<jet.String?>*/): jet.Unit
|
||||||
|
}
|
||||||
@@ -1238,6 +1238,11 @@ public class LoadJavaTestGenerated extends AbstractLoadJavaTest {
|
|||||||
doTestCompiledJava("compiler/testData/loadJava/compiledJava/singleAbstractMethod/SubstitutedSamInterfaceSubclassOfBuiltin.java");
|
doTestCompiledJava("compiler/testData/loadJava/compiledJava/singleAbstractMethod/SubstitutedSamInterfaceSubclassOfBuiltin.java");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("VarargParameter.java")
|
||||||
|
public void testVarargParameter() throws Exception {
|
||||||
|
doTestCompiledJava("compiler/testData/loadJava/compiledJava/singleAbstractMethod/VarargParameter.java");
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("compiler/testData/loadJava/compiledJava/singleAbstractMethod/adapter")
|
@TestMetadata("compiler/testData/loadJava/compiledJava/singleAbstractMethod/adapter")
|
||||||
public static class Adapter extends AbstractLoadJavaTest {
|
public static class Adapter extends AbstractLoadJavaTest {
|
||||||
public void testAllFilesPresentInAdapter() throws Exception {
|
public void testAllFilesPresentInAdapter() throws Exception {
|
||||||
|
|||||||
Reference in New Issue
Block a user