1071919706
Also remove any mentions of NewInference, and rename some tests.
20 lines
295 B
Kotlin
Vendored
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()()
|
|
}
|