Files
kotlin-fork/compiler/testData/diagnostics/tests/j+k/intersectionWithJavaVoidNothing.kt
T

18 lines
380 B
Kotlin
Vendored

// 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