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