fe5adab652
For example, NEW_INFERENCE_NO_INFORMATION_FOR_PARAMETER
It became especially relevant after 0e84bf2053
that together with later commits bring a lot of unnecessary
NEW_INFERENCE_NO_INFORMATION_FOR_PARAMETER diagnostic
29 lines
465 B
Kotlin
Vendored
29 lines
465 B
Kotlin
Vendored
// !LANGUAGE: -EnumEntries
|
|
// WITH_STDLIB
|
|
|
|
enum class A {
|
|
;
|
|
|
|
companion object {
|
|
val entries = 0
|
|
}
|
|
}
|
|
|
|
fun test() {
|
|
A.<!OPT_IN_USAGE_ERROR!>entries<!>
|
|
A.Companion.entries
|
|
|
|
with(A) {
|
|
entries
|
|
this.entries
|
|
<!UNRESOLVED_REFERENCE!>values<!>() // to be sure that we don't resolve into synthetic 'values'
|
|
}
|
|
|
|
with(A.Companion) {
|
|
entries
|
|
}
|
|
|
|
val aCompanion = A.Companion
|
|
aCompanion.entries
|
|
}
|