20 lines
426 B
Kotlin
Vendored
20 lines
426 B
Kotlin
Vendored
// FILE: A.kt
|
|
|
|
open class A(@JvmField public val publicField: String = "1",
|
|
@JvmField internal val internalField: String = "2",
|
|
@JvmField protected val protectedfield: String = "3")
|
|
|
|
open class B : A()
|
|
|
|
// FILE: B.kt
|
|
|
|
open class C : B() {
|
|
fun test(): String {
|
|
return super.publicField + super.internalField + super.protectedfield
|
|
}
|
|
}
|
|
|
|
fun main(args: Array<String>) {
|
|
C().test()
|
|
}
|