Files
kotlin-fork/compiler/fir/analysis-tests/testData/resolve/companionAccessInEnum.kt
T
Denis Zharkov a5545b96cb FIR: Fix ambiguity between current Companion and one from supertypes
Companion as qualifier should be found at static scope not a member one
2020-11-10 14:26:54 +03:00

11 lines
150 B
Kotlin
Vendored

enum class A {
X, Y;
companion object {
fun foo(): Int {
return 1
}
}
fun foo(): Int = Companion.foo()
}