K2: add various tests describing current KT-62554 / KT-63242 behavior
This commit is contained in:
committed by
Space Team
parent
17a1871b83
commit
54d978ba86
@@ -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
|
||||
Reference in New Issue
Block a user