Files
kotlin-fork/j2k/testData/fileOrElement/dropAccessors/DifferentProtectedFieldName.kt
T
2015-03-31 16:10:23 +03:00

17 lines
252 B
Kotlin

public open class AAA {
public var x: Int = 42
protected set
public fun foo(other: AAA) {
println(x)
println(other.x)
x = 10
}
}
class BBB : AAA() {
fun bar() {
println(x)
x = 10
}
}