New J2K: Split old j2k and new j2k tests
This commit is contained in:
committed by
Ilya Kirillov
parent
02a206bf7c
commit
b411e8e18e
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
-14
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user