[FIR] Add a blackbox test for KT-65972
This commit is contained in:
committed by
Space Team
parent
da6006b7d0
commit
e929ed8f8c
+38
@@ -0,0 +1,38 @@
|
||||
// TARGET_BACKEND: JVM
|
||||
// SKIP_JDK6
|
||||
// JVM_TARGET: 1.8
|
||||
|
||||
// FILE: IntCollection.java
|
||||
interface IntCollection<E> {
|
||||
public boolean add(int key);
|
||||
}
|
||||
|
||||
// FILE: IntSet.java
|
||||
interface IntSet extends IntCollection {
|
||||
public default boolean add(Integer it) { return true; }
|
||||
|
||||
// from the supertype
|
||||
// public boolean add(int key);
|
||||
}
|
||||
|
||||
// FILE: AbstractCollection.java
|
||||
abstract class AbstractCollection<E> {
|
||||
public boolean add(E it) { return true; }
|
||||
}
|
||||
|
||||
// FILE: AbstractIntCollection.java
|
||||
abstract class AbstractIntCollection extends AbstractCollection<Integer> {
|
||||
public boolean add(int it) { return true; }
|
||||
|
||||
// from the supertype
|
||||
// public default boolen add(Integer it) { return true; }
|
||||
}
|
||||
|
||||
// FILE: AbstractIntSet.java
|
||||
public abstract class AbstractIntSet extends AbstractIntCollection implements IntSet {}
|
||||
|
||||
// FILE: Main.kt
|
||||
|
||||
class KotlinClass : AbstractIntSet()
|
||||
|
||||
fun box() = "OK".also { KotlinClass() }
|
||||
Reference in New Issue
Block a user