[Tests] Add tests for KT-40180

^KT-40180 Fixed
This commit is contained in:
Vladimir Sukharev
2024-03-05 10:35:12 +01:00
committed by Space Team
parent eec14f0054
commit 848cca03c0
14 changed files with 299 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
// TARGET_BACKEND: JVM
// TARGET_BACKEND: JVM_IR
// JVM_TARGET: 1.8
// FILE: Test.java
public interface Test<T> {
default T test(T p) {
return null;
}
}
// FILE: kotlin.kt
interface Test2: Test<String> {
override fun test(p: String): String {
return p
}
fun forDefaultImpls() {}
}
class TestClass : Test2
fun box() = TestClass().test("OK")