Files
kotlin-fork/compiler/testData/diagnostics/tests/invisibleMemberDestructuring.fir.kt
T
Nikolay Lunyak 699366f178 [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
2023-05-25 12:19:30 +00:00

8 lines
208 B
Kotlin
Vendored

// ISSUE: KT-58184
data class A(private val p1: Int, private val p2: Int)
fun test(a: A) {
val (<!INVISIBLE_REFERENCE!>p1<!>, <!INVISIBLE_REFERENCE!>p2<!>) = a // ok, but INVISIBLE_MEMBER is expected
}