K2: reproduce KT-61844

This commit is contained in:
Mikhail Glukhikh
2023-09-20 17:10:48 +02:00
committed by Space Team
parent 36df749697
commit b9302869d5
9 changed files with 78 additions and 0 deletions
@@ -0,0 +1,11 @@
// ISSUE: KT-61844
// FIR_DUMP
class Foo<I, out O>(
private val transformer: (I) -> O,
) {
fun <I, O> transform(foo: Foo<I, O>, bar: I) {
foo.transformer(bar)
foo.transformer.invoke(bar)
}
}