3ebeca5852
KT-44278 KT-26060 KT-42621
12 lines
181 B
Kotlin
Vendored
12 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 specializedSam(f: () -> String) = expectsSam({ f() })
|