mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
- change Closure parameter to ClassDescriptor, load closure in the beginning - invert and rename boolean parameter, also use it only to prevent pushing dispatch receiver (not the extension receiver) onto the stack because the only non-trivial usage of it is preceded by manual handling of the dispatch (not extension) receiver. This fixes innerOfLocalCaptureExtensionReceiver.kt
15 lines
274 B
Kotlin
Vendored
15 lines
274 B
Kotlin
Vendored
class Outer {
|
|
fun String.id(): String {
|
|
class Local(unused: Long) {
|
|
fun result() = this@id
|
|
fun outer() = this@Outer
|
|
}
|
|
|
|
return Local(42L).result()
|
|
}
|
|
|
|
fun result(): String = "OK".id()
|
|
}
|
|
|
|
fun box() = Outer().result()
|