11 lines
180 B
Kotlin
Vendored
11 lines
180 B
Kotlin
Vendored
// WITH_SIGNATURES
|
|
// FILE: t.kt
|
|
|
|
fun interface Sam<T> {
|
|
fun get(): T
|
|
}
|
|
|
|
fun <T> expectsSam(sam: Sam<T>) = sam.get()
|
|
|
|
fun specializedSam(f: () -> String) = expectsSam({ f() })
|