K2: add various tests describing current KT-62554 / KT-63242 behavior

This commit is contained in:
Mikhail Glukhikh
2023-11-22 19:02:48 +01:00
committed by Space Team
parent 17a1871b83
commit 54d978ba86
47 changed files with 916 additions and 0 deletions
@@ -0,0 +1,17 @@
// FIR_IDENTICAL
// WITH_STDLIB
// FILE: BaseOwnerJava.java
import java.util.Collection;
public interface BaseOwnerJava {
void setSomething(Collection<? extends BaseOwnerJava> arg);
}
// FILE: test.kt
abstract class Impl : BaseOwnerJava {
override fun setSomething(arg: Collection<BaseOwnerJava>) = throw IllegalStateException()
}
class Final : Impl(), BaseOwnerJava