K1/K2: add reproducers for KT-66229, KT-66243 and KT-66272
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
This commit is contained in:
committed by
Space Team
parent
b43f69364b
commit
5ea6f20192
@@ -0,0 +1,21 @@
|
||||
// FIR_IDENTICAL
|
||||
// ISSUE: KT-66272
|
||||
|
||||
data class DataClass(val data: String)
|
||||
|
||||
fun test() {
|
||||
A.create {
|
||||
it.group().apply(it, ::DataClass)
|
||||
}
|
||||
}
|
||||
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>) {}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user