Files
kotlin-fork/compiler/testData/diagnostics/tests/enum/entries/entriesPropertyImportedClash.fir.kt
T
2023-01-24 12:46:00 +00:00

23 lines
257 B
Kotlin
Vendored

// !LANGUAGE: -EnumEntries
// WITH_STDLIB
package foo
import foo.A.Companion.entries
enum class A {
;
companion object {
val entries = 0
}
}
fun test() {
A.<!OPT_IN_USAGE_ERROR!>entries<!>
with(A) {
entries
}
}