Files
kotlin-fork/compiler/testData/codegen/box/fullJdk/kt31757.kt
T
2019-11-19 11:00:09 +03:00

22 lines
353 B
Kotlin
Vendored

// !LANGUAGE: +NewInference
// IGNORE_BACKEND_FIR: JVM_IR
// TARGET_BACKEND: JVM
// SKIP_JDK6
// 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()()
}