New J2K: Split old j2k and new j2k tests

This commit is contained in:
Ilya Kirillov
2019-03-28 14:20:17 +03:00
committed by Ilya Kirillov
parent 02a206bf7c
commit b411e8e18e
1631 changed files with 14067 additions and 1513 deletions
@@ -1,7 +0,0 @@
import javax.swing.SwingUtilities
class A {
internal fun foo() {
SwingUtilities.invokeLater { println("a") }
}
}
@@ -1,26 +0,0 @@
import javaApi.JavaClass
import kotlinApi.KotlinClass
internal class X {
operator fun get(index: Int): Int {
return 0
}
}
internal class C {
fun foo(map: HashMap<String, String>): String {
return map["a"]
}
fun foo(x: X): Int {
return x[0]
}
fun foo(kotlinClass: KotlinClass): Int {
return kotlinClass.get(0) // not operator!
}
fun foo(javaClass: JavaClass): Int {
return javaClass.get(0)
}
}
@@ -1,6 +0,0 @@
internal class C {
fun foo(o: Any?) {
if (o !is String) return
println("String")
}
}
@@ -1,7 +0,0 @@
internal class C {
fun foo(o: Any?) {
if (o is String) {
val l = o.length
}
}
}
@@ -1,8 +0,0 @@
internal class C {
fun foo(o: Any?) {
if (o is String) {
val l = o.length
val substring = o.substring(l - 2)
}
}
}
@@ -1,14 +0,0 @@
object C {
fun consume1(c: C?) {}
fun consume2(c: C?) {}
fun foo(cList: List<C?>) {
val iter: Iterator<*> = cList.iterator()
while (iter.hasNext()) {
val c = iter.next() as C?
consume1(c)
consume2(c)
}
}
}