5ea6f20192
As all these issues aren't reproducible in K2, we may count them as fixed. Related to KT-53478 #KT-66229 Fixed #KT-66243 Fixed #KT-66272 Fixed
26 lines
552 B
Kotlin
Vendored
26 lines
552 B
Kotlin
Vendored
// FIR_IDENTICAL
|
|
// ISSUE: KT-66272
|
|
// IGNORE_BACKEND_K1: JVM_IR, JS_IR, JS_IR_ES6, WASM, NATIVE
|
|
// Reason: Could not load module <Error module>
|
|
|
|
data class DataClass(val data: String)
|
|
|
|
fun box(): String {
|
|
A.create {
|
|
it.group().apply(it, ::DataClass)
|
|
}
|
|
return "OK"
|
|
}
|
|
|
|
open class A<O, F> {
|
|
open fun group(): A<F, String> {
|
|
return null!!
|
|
}
|
|
fun <R> apply(instance: A<O, *>, function: (F) -> R): A<O, R> {
|
|
return null!!
|
|
}
|
|
companion object {
|
|
fun <T> create(a: (A<T, T>) -> A<T, T>) {}
|
|
}
|
|
}
|