K2: process also arguments while calculating postponed atoms

#KT-61933 Fixed
This commit is contained in:
Mikhail Glukhikh
2023-09-19 09:09:03 +02:00
committed by Space Team
parent 0c287c9945
commit 14bc20652e
4 changed files with 7 additions and 18 deletions
@@ -1,17 +0,0 @@
// ISSUE: KT-61933
data class Bar(
val foo: Foo<suspend () -> Unit>
)
data class Foo<out TCallback : Any>(
val state: TCallback?,
)
fun usage(b: Boolean) {
Bar(
foo = <!ARGUMENT_TYPE_MISMATCH!>Foo(
state = if (b) { -> } else null,
)<!>
)
}
@@ -1,3 +1,4 @@
// FIR_IDENTICAL
// ISSUE: KT-61933
data class Bar(