Fix inaccurate report of DEPRECATED_ACCESS_TO_ENTRY_PROPERTY_FROM_ENUM
It can be reported not only from within the enum, but also from top-level functions. Add separate diagnostic for such cases. ^KT-64488
This commit is contained in:
committed by
Space Team
parent
34d87465ac
commit
02b5fed389
+1
-1
@@ -7,5 +7,5 @@ enum class MyEnum
|
||||
val entries = "local str"
|
||||
|
||||
fun test() {
|
||||
<!DEPRECATED_ACCESS_TO_ENTRY_PROPERTY_FROM_ENUM!>entries<!>
|
||||
<!DEPRECATED_ACCESS_TO_ENTRIES_PROPERTY!>entries<!>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user