New J2K: Fix existing test data

This commit is contained in:
Ilya Kirillov
2019-02-13 12:18:08 +03:00
committed by Ilya Kirillov
parent 9c71d5ca25
commit ea2081c2f0
40 changed files with 518 additions and 14 deletions
+39
View File
@@ -0,0 +1,39 @@
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()
}
}