991e60c9e4
#KT-31784 Obsolete #KT-31757 Obsolete
19 lines
309 B
Kotlin
Vendored
19 lines
309 B
Kotlin
Vendored
// !LANGUAGE: +NewInference
|
|
// TARGET_BACKEND: JVM
|
|
// FULL_JDK
|
|
|
|
package test
|
|
|
|
import java.util.function.*
|
|
|
|
interface Interface1<T> : () -> T, Supplier<T> {
|
|
override fun invoke() = get()
|
|
}
|
|
|
|
class Impl : Interface1<String> {
|
|
override fun get(): String = "OK"
|
|
}
|
|
|
|
fun box(): String {
|
|
return Impl()()
|
|
} |