[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:
committed by
Space Team
parent
d45e0116dd
commit
699366f178
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user