New J2K: Split old j2k and new j2k tests
This commit is contained in:
committed by
Ilya Kirillov
parent
02a206bf7c
commit
b411e8e18e
@@ -1,15 +0,0 @@
|
||||
package test
|
||||
|
||||
abstract class Base(protected var field: Int)
|
||||
|
||||
class Derived(value: Int) : Base(value) {
|
||||
private val usage: View = object : View() {
|
||||
override fun click() {
|
||||
val activity = field
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
internal abstract class View {
|
||||
internal abstract fun click()
|
||||
}
|
||||
@@ -1,39 +0,0 @@
|
||||
package test
|
||||
|
||||
class BaseProtectedConstructor {
|
||||
fun usageInConstructor() {
|
||||
|
||||
}
|
||||
|
||||
fun usageInPropertyInitializer(): Int {
|
||||
return 1
|
||||
}
|
||||
|
||||
fun usageInStaticInit() {
|
||||
|
||||
}
|
||||
|
||||
fun usageInMethod() {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
internal class DerivedSamePackage {
|
||||
|
||||
private val i = BaseProtectedConstructor().usageInPropertyInitializer()
|
||||
|
||||
init {
|
||||
BaseProtectedConstructor().usageInConstructor()
|
||||
}
|
||||
|
||||
companion object {
|
||||
|
||||
init {
|
||||
BaseProtectedConstructor().usageInStaticInit()
|
||||
}
|
||||
}
|
||||
|
||||
fun usage() {
|
||||
BaseProtectedConstructor().usageInMethod()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user