Files
kotlin/compiler/testData/codegen/bytecodeListing/privateDefaultSetter.kt
Alexander Udalov 5fb1bbe3f3 Add bytecode listing test on private default setter
Also fix test data of the kotlinp test and remove the newly added test
case in the obsolete PropertyGenTest

 #KT-20344 Fixed
2018-10-18 12:13:22 +02:00

17 lines
365 B
Kotlin
Vendored

open class Test {
var publicProperty: String = ""
private set
protected var protectedProperty: String = ""
private set
internal var internalProperty: String = ""
private set
fun update(i: Int) {
publicProperty = i.toString()
protectedProperty = i.toString()
internalProperty = i.toString()
}
}