Choose proper context for accessor generation: skip inline ones; Fix for KT-6102: Bypass synthetic accessor when inlining lambda which calls private member

#KT-6102 Fixed
This commit is contained in:
Michael Bogdanov
2015-12-14 18:47:29 +03:00
parent 033698c51d
commit 9cad1a912a
22 changed files with 457 additions and 40 deletions
@@ -0,0 +1,28 @@
inline fun call(s: () -> Unit) {
s()
}
class A {
private fun method() {}
private val prop = 1
fun test1() {
call {
method()
prop
}
}
fun test2() {
call {
call {
method()
prop
}
}
}
}
//0 access\$