3438d19c22
KT-44278 KT-26060 KT-42621
14 lines
246 B
Kotlin
Vendored
14 lines
246 B
Kotlin
Vendored
// KOTLIN_CONFIGURATION_FLAGS: SAM_CONVERSIONS=CLASS
|
|
// WITH_SIGNATURES
|
|
// FILE: t.kt
|
|
|
|
fun interface Sam<T> {
|
|
fun get(): T
|
|
}
|
|
|
|
fun <T> expectsSam(sam: Sam<T>) = sam.get()
|
|
|
|
fun <T> foo(): T = null!!
|
|
|
|
fun <T> genericSam(): T = expectsSam(::foo)
|