mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 08:31:29 +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
16 lines
261 B
Kotlin
16 lines
261 B
Kotlin
fun String.bar(): String {
|
|
open class Local {
|
|
fun result() = this@bar
|
|
}
|
|
|
|
class Outer {
|
|
inner class Inner : Local() {
|
|
fun outer() = this@Outer
|
|
}
|
|
}
|
|
|
|
return Outer().Inner().result()
|
|
}
|
|
|
|
fun box() = "OK".bar()
|