Add a warning for a user-defined entries property call

^KT-53153
This commit is contained in:
Mikhail Zarechenskiy
2023-01-03 15:53:21 +01:00
committed by Space Team
parent 695a538529
commit 989fc886e1
24 changed files with 549 additions and 6 deletions
@@ -0,0 +1,28 @@
// !LANGUAGE: -EnumEntries
package pckg
enum class A {
;
companion object
}
val A.Companion.entries: Int get() = 0
fun test() {
A.entries
A.Companion.entries
with(A) {
this.entries
entries
}
with(A.Companion) {
entries
}
val aCompanion = A.Companion
aCompanion.entries
}