mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-16 15:53:55 +00:00
Added alternative signature test with vararg parameter.
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
package test;
|
||||
|
||||
import java.lang.String;
|
||||
import java.lang.UnsupportedOperationException;
|
||||
import java.util.*;
|
||||
import java.util.BitSet;
|
||||
import java.util.List;
|
||||
|
||||
import jet.runtime.typeinfo.KotlinSignature;
|
||||
|
||||
public class MethodWithVararg {
|
||||
@KotlinSignature("fun foo(vararg s : String)")
|
||||
public void foo(String... s) {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package test
|
||||
|
||||
import java.util.*
|
||||
|
||||
public open class MethodWithVararg : Object() {
|
||||
open fun foo(vararg p0 : String) {
|
||||
throw UnsupportedOperationException()
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
namespace test
|
||||
|
||||
open class test.MethodWithVararg : java.lang.Object {
|
||||
final /*constructor*/ fun <init>(): test.MethodWithVararg
|
||||
open fun foo(/*0*/ vararg p0: jet.String /*jet.Array<jet.String>*/): jet.Tuple0
|
||||
}
|
||||
Reference in New Issue
Block a user