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,6 +0,0 @@
internal annotation class A
internal annotation class B
class U(@field:B @param:A
var i: Int)
@@ -1,18 +0,0 @@
internal annotation class Anon(val value: String) {
enum class E {
A, B
}
companion object {
val field = E.A
}
}
@Anon("a")
internal interface I {
companion object {
val e = Anon.field
}
}
@@ -1,45 +0,0 @@
// ERROR: This annotation is not applicable to target 'local variable'
// ERROR: This annotation is not applicable to target 'value parameter'
// ERROR: This annotation is not applicable to target 'value parameter'
import javaApi.Anon1
import javaApi.Anon2
import javaApi.Anon3
import javaApi.Anon4
import javaApi.Anon5
import javaApi.Anon6
import javaApi.Anon7
import javaApi.Anon8
import javaApi.E
@Anon1(value = ["a"], stringArray = ["b"], intArray = [1, 2], string = "x")
@Anon2(value = "a", intValue = 1, charValue = 'a')
@Anon3(e = E.A, stringArray = [], value = ["a", "b"])
@Anon4("x", "y")
@Anon5(1)
@Anon6("x", "y")
@Anon7(String::class, StringBuilder::class)
@Anon8(classes = [String::class, StringBuilder::class])
internal class C {
@Anon5(1)
@Deprecated("")
private val field1 = 0
@Anon5(1)
private val field2 = 0
@Anon5(1)
var field3 = 0
@Anon5(1)
var field4 = 0
@Anon6
fun foo(@Deprecated("") p1: Int, @Deprecated("") @Anon5(2) p2: Char) {
@Deprecated("") @Anon5(3) val c = 'a'
}
@Anon5(1)
fun bar() {
}
}
@@ -1,8 +0,0 @@
internal annotation class An(val value: String)
class Test {
@get:An(value = "get")
@set:An(value = "set")
var id = 0
}
@@ -1,21 +0,0 @@
// !forceNotNullTypes: false
// !specifyLocalVariableTypeByDefault: true
package test
internal class Foo {
fun execute() {}
}
internal class Bar {
var fooNotNull = Foo()
var fooNullable: Foo? = null
}
internal class Test {
fun test(barNotNull: Bar, barNullable: Bar) {
barNotNull.fooNotNull.execute()
barNotNull.fooNullable!!.execute()
barNullable.fooNotNull.execute()
barNullable.fooNullable!!.execute()
}
}
@@ -1,17 +0,0 @@
class WithModifiersOnAccessors {
@get:Synchronized
@set:Synchronized
var sync = 0
@get:Strictfp
val strict = 0.0
@Synchronized
private fun methSync() {
}
@Strictfp
protected fun methStrict() {
}
}
@@ -1,17 +0,0 @@
import java.io.Serializable
class Bar : Serializable {
internal var foobar = 0
companion object {
private const val serialVersionUID: Long = 0
}
}
class Foo {
internal var foobar = 0
companion object {
private const val serialVersionUID: Long = 0
}
}