Files
kotlin-fork/nj2k/testData/newJ2k/detectProperties/DifferentProtectedFieldName.kt
T
2019-04-03 11:24:19 +03:00

17 lines
235 B
Kotlin
Vendored

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