Files
kotlin-fork/compiler/testData/codegen/box/fullJdk/kt31757.kt
T
Alexander Udalov 1071919706 Remove backend tests on old inference
Also remove any mentions of NewInference, and rename some tests.
2021-11-09 20:07:33 +01:00

20 lines
295 B
Kotlin
Vendored

// 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()()
}