New J2K: Fix existing test data
This commit is contained in:
committed by
Ilya Kirillov
parent
9c71d5ca25
commit
ea2081c2f0
@@ -0,0 +1,7 @@
|
||||
import kotlinApi.extensionFunction
|
||||
|
||||
fun adjust(name: String?, maxLen: Int) {
|
||||
(1 + 1).toString()
|
||||
"a".split(("\\s+" + "\\s+").toRegex(), 2).toTypedArray()
|
||||
(1 + 1).extensionFunction()
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
import java.lang.reflect.Constructor
|
||||
|
||||
internal object X {
|
||||
@Throws(Exception::class)
|
||||
fun <T> foo(constructor: Constructor<T?>, args1: Array<Any?>, args2: Array<Any?>?) {
|
||||
constructor.newInstance(*args1)
|
||||
constructor.newInstance(args1, args2)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
import javaApi.WithVarargConstructor
|
||||
|
||||
internal class X {
|
||||
fun foo() {
|
||||
val o1 = WithVarargConstructor(1, *arrayOf("a"))
|
||||
val o2 = WithVarargConstructor(2, arrayOf("a"), arrayOf("b"))
|
||||
val o3 = WithVarargConstructor(2, "a")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user