Files
kotlin-fork/compiler/fir/analysis-tests/testData/resolve/localClasses/lambdaWithAnonymousObject.kt
T
2023-04-11 14:45:36 +00:00

16 lines
207 B
Kotlin
Vendored

// ISSUE: KT-57839
fun <R> myRun(block: () -> R): R {
return block()
}
interface Bar {
val action: () -> Unit
}
val cardModel = myRun {
object : Bar {
override val action = {}
}
}