[K2] Disappeared OPT_IN_USAGE_ERROR for a data class property during the destructuring declaration

^KT-62450
This commit is contained in:
Anastasia.Nekrasova
2023-10-12 14:57:35 +03:00
committed by Space Team
parent dfdd86da1f
commit 9ad4cf4c55
10 changed files with 85 additions and 2 deletions
@@ -27,7 +27,7 @@ data class DataClass(@property:Marker val x: Int)
fun useDataClass(d: DataClass) {
// Should have error in both
d.<!OPT_IN_USAGE_ERROR!>x<!>
val (x) = d
val (<!OPT_IN_USAGE_ERROR!>x<!>) = d
}
typealias My = <!OPT_IN_USAGE_ERROR!>Some<!>