Files
kotlin-fork/compiler/testData/codegen/asmLike/receiverMangling/nonInlineReceivers_before.kt
T
2020-01-29 17:00:00 +01:00

13 lines
297 B
Kotlin
Vendored

// !LANGUAGE: -NewCapturedReceiverFieldNamingConvention
// IGNORE_BACKEND: JVM_IR
// LOCAL_VARIABLE_TABLE
fun String.foo(count: Int) {
val x = false
block {
this@foo + this@block.toString() + x.toString() + count.toString()
}
}
fun block(block: Long.() -> Unit) = 5L.block()