Files
kotlin-fork/compiler/testData/checkLocalVariablesTable/objectInLocalPropertyDelegate.kt
T
Alexander Udalov d757847ed6 JVM: enable -Xlambdas=class for some backend tests
These tests are checking the specifics of the class-generated lambdas.
2023-05-12 15:21:00 +00:00

11 lines
301 B
Kotlin
Vendored

// LAMBDAS: CLASS
operator fun (() -> String).getValue(thisRef: Any?, property: Any?) = this()
fun foo() {
val prop by { "OK" }
}
// METHOD : ObjectInLocalPropertyDelegateKt$foo$prop$2.invoke()Ljava/lang/String;
// VARIABLE : NAME=this TYPE=LObjectInLocalPropertyDelegateKt$foo$prop$2; INDEX=0