Files
kotlin-fork/j2k/testData/fileOrElement/protected/usages.kt
T
2017-07-20 01:15:15 +03:00

40 lines
608 B
Kotlin
Vendored

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()
}
fun usage() {
BaseProtectedConstructor().usageInMethod()
}
companion object {
init {
BaseProtectedConstructor().usageInStaticInit()
}
}
}