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
-17
View File
@@ -1,17 +0,0 @@
package test
class Short(s: String?) {
companion object {
fun valueOf(value: String): Short {
return Short(value)
}
}
}
internal object Test {
fun test() {
Short.valueOf("1")
test.Short.valueOf("1")
java.lang.Short.valueOf("1")
}
}
@@ -1,4 +0,0 @@
internal abstract class Shape {
var color: String? = null
abstract fun area(): Double
}
+1 -1
View File
@@ -6,7 +6,7 @@ public class Test {
private Listener listener = new Listener() {
@Override
public void onChange(int visibility) {
int a = (visibility & 1)
val a = (visibility & 1)
}
}
}
@@ -1,7 +0,0 @@
package test
import javaApi.Listener
class Test {
private val listener = Listener { visibility -> val a = visibility and 1 }
}
@@ -1,5 +0,0 @@
internal class T {
fun main() {}
fun i(): Int {}
fun s(): String? {}
}
@@ -1,3 +1,2 @@
interface I {}
class Base {}
final class A extends Base implements I {}
//class
final class A extends Base implements I {}
@@ -1,3 +1 @@
internal interface I
internal open class Base
internal class A : Base(), I
internal class A : Base(), I
@@ -1,5 +1,2 @@
class Base {}
interface I0 {}
interface I1 {}
interface I2 {}
//class
final class A extends Base implements I0, I1, I2 {}
@@ -1,5 +1 @@
internal open class Base
internal interface I0
internal interface I1
internal interface I2
internal class A : Base(), I0, I1, I2
-18
View File
@@ -1,18 +0,0 @@
// ERROR: Type inference failed: Not enough information to infer parameter K in constructor HashMap<K : Any!, V : Any!>(initialCapacity: Int) Please specify it explicitly.
// ERROR: Type inference failed: Not enough information to infer parameter K in constructor HashMap<K : Any!, V : Any!>(initialCapacity: Int) Please specify it explicitly.
package demo
internal class Test {
constructor() {}
constructor(s: String?) {}
}
internal class User {
fun main() {
val m: HashMap<*, *> = HashMap<Any?, Any?>(1)
val m2: HashMap<*, *> = HashMap<Any?, Any?>(10)
val t1 = Test()
val t2 = Test("")
}
}
@@ -1,9 +0,0 @@
internal open class Base {
companion object {
const val CONSTANT = 10
}
}
internal class Derived : Base() {
fun foo() {}
}
+1 -1
View File
@@ -1,2 +1,2 @@
class Base {}
//class
final class A extends Base {}
-1
View File
@@ -1,2 +1 @@
internal open class Base
internal class A : Base()
-6
View File
@@ -1,6 +0,0 @@
internal object Util {
const val CONSTANT = 10
fun util1() {}
fun util2() {}
}
-7
View File
@@ -1,7 +0,0 @@
internal object Util {
const val CONSTANT = 10
fun util1() {}
fun util2() {}
}
-6
View File
@@ -1,6 +0,0 @@
internal object Util {
const val CONSTANT = 10
fun util1() {}
fun util2() {}
}
-10
View File
@@ -1,10 +0,0 @@
internal object Util {
const val publicStr = ""
internal const val protectedStr = ""
const val packageStr = ""
private const val privateStr = ""
fun publicMethod() {}
internal fun protectedMethod() {}
fun packageMethod() {}
private fun privateMethod() {}
}
-11
View File
@@ -1,11 +0,0 @@
object Util {
const val publicStr = ""
internal const val protectedStr = ""
internal const val packageStr = ""
private const val privateStr = ""
fun publicMethod() {}
internal fun protectedMethod() {}
internal fun packageMethod() {}
private fun privateMethod() {}
}