163afc94bc
Use -Xlambdas=class in tests which were checking specific things related to how anonymous classes for lambdas work (such as receiver mangling, function arity etc.)
15 lines
307 B
Kotlin
Vendored
15 lines
307 B
Kotlin
Vendored
// !LANGUAGE: -NewCapturedReceiverFieldNamingConvention
|
|
// IR_DIFFERENCE
|
|
// LOCAL_VARIABLE_TABLE
|
|
// LAMBDAS: CLASS
|
|
|
|
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()
|