[FIR] KT-58184: Prevent missing diagnostics on component calls

Update the component function visibility
based on the already resolved visibility
of the property before transforming
the status of the component function itself.

^KT-58184 Fixed
This commit is contained in:
Nikolay Lunyak
2023-05-12 17:16:57 +03:00
committed by Space Team
parent d45e0116dd
commit 699366f178
21 changed files with 177 additions and 119 deletions
@@ -0,0 +1,7 @@
// ISSUE: KT-58184
data class A(private val p1: Int, private val p2: Int)
fun test(a: A) {
val (<!INVISIBLE_MEMBER!>p1<!>, <!INVISIBLE_MEMBER!>p2<!>) = a // ok, but INVISIBLE_MEMBER is expected
}