Add tests for obsolete issues

#KT-31784 Obsolete
 #KT-31757 Obsolete
This commit is contained in:
Mikhail Zarechenskiy
2019-06-10 11:49:53 +03:00
parent 414c116d93
commit 991e60c9e4
7 changed files with 93 additions and 0 deletions
+19
View File
@@ -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()()
}