Files
kotlin-fork/compiler/testData/codegen/boxInline/callableReference/kt16411.kt
T
2018-08-09 14:22:50 +03:00

17 lines
277 B
Kotlin
Vendored

// FILE: 1.kt
inline fun <R> startFlow(
flowConstructor: (String) -> R
): R {
return flowConstructor("OK")
}
object Foo {
class Requester(val dealToBeOffered: String)
}
// FILE: 2.kt
fun box(): String {
return startFlow(Foo::Requester).dealToBeOffered
}