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:
@@ -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\$
|
||||
Reference in New Issue
Block a user