blob: c7b810feef03e0cf87d0675514118f6c96dbaba7 [file]
// TARGET_BACKEND: JVM_IR
// IGNORE_BACKEND_K2: JVM_IR
// Reason: java.lang.ClassNotFoundException: error.NonExistentClass (shouldn't work anyway due to MISSING_DEPENDENCY_CLASS)
// ISSUE: KT-66743
// MODULE: start
// FILE: start.kt
interface InaccessibleGenericType<T>
// MODULE: middle(start)
// FILE: middle.kt
fun withGenericReceiver(arg: InaccessibleGenericType<*>.() -> Unit) {}
// MODULE: end(middle)
// FILE: end.kt
fun box(): String {
@Suppress("MISSING_DEPENDENCY_CLASS")
withGenericReceiver {}
return "OK"
}