Add tests for obsolete issues
#KT-31784 Obsolete #KT-31757 Obsolete
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
// !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()()
|
||||
}
|
||||
Reference in New Issue
Block a user