Files
kotlin-fork/compiler/testData/codegen/bytecodeListing/sam/lambdaGenericFunInterface.kt
T

11 lines
181 B
Kotlin
Vendored

// WITH_SIGNATURES
// FILE: t.kt
fun interface Sam<T> {
fun get(): T
}
fun <T> expectsSam(sam: Sam<T>) = sam.get()
fun <T> genericSamGet(f: () -> T): T = expectsSam({ f() })