Files
kotlin-fork/compiler/testData/codegen/box/javaInterop/generics/kt42825.kt
T
Pavel Kunyavskiy 733ca5a358 [K/N] Unmute tests already working on native
Also, add issue references for some tests
2023-06-06 14:29:21 +00:00

26 lines
512 B
Kotlin
Vendored

// TARGET_BACKEND: JVM
// FILE: Processor.java
public interface Processor<T> {
boolean process(T t);
}
// FILE: test.kt
interface PsiModifierListOwner
interface KtClassOrObject {
fun toLightClass(): PsiModifierListOwner?
}
fun execute(declaration: Any, consumer: Processor<in PsiModifierListOwner>) {
when (declaration) {
is KtClassOrObject -> {
val lightClass = declaration.toLightClass()
consumer.process(lightClass)
}
}
}
fun box(): String = "OK"