Stable accessors names
This commit is contained in:
committed by
Max Kammerer
parent
7851abd535
commit
01864801f3
@@ -0,0 +1,32 @@
|
||||
class A {
|
||||
|
||||
private var foo = 1;
|
||||
|
||||
fun `access$getFoo$p`(a: A): Int = 1
|
||||
fun `access$setFoo$p`(a: A, d: Int) {}
|
||||
|
||||
//companion backing field accessors
|
||||
fun `access$getFoo$cp`(): Int = 1
|
||||
fun `access$setFoo$cp`(d: Int) {}
|
||||
|
||||
companion object {
|
||||
private var foo = 1;
|
||||
|
||||
fun test() {
|
||||
{
|
||||
foo = 2;
|
||||
foo
|
||||
}()
|
||||
}
|
||||
|
||||
fun `access$getFoo$p`(p: A.Companion): Int = 1
|
||||
fun `access$setFoo$p`(p: A.Companion, d: Int) {}
|
||||
}
|
||||
|
||||
fun test() {
|
||||
{
|
||||
foo = 2;
|
||||
foo
|
||||
}()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user