Files
kotlin-fork/compiler/testData/cli/jvm/syntheticAccessorPropertyAndFunSignatureClash.kt
T
2015-10-18 17:53:29 +03:00

25 lines
419 B
Kotlin
Vendored

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();
}()
}
}