New J2K: Fix existing test data

This commit is contained in:
Ilya Kirillov
2019-02-13 12:18:08 +03:00
committed by Ilya Kirillov
parent 9c71d5ca25
commit ea2081c2f0
40 changed files with 518 additions and 14 deletions
@@ -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")
}
}