mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 08:31:26 +00:00
28 lines
341 B
Kotlin
Vendored
28 lines
341 B
Kotlin
Vendored
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\$ |