a5545b96cb
Companion as qualifier should be found at static scope not a member one
11 lines
150 B
Kotlin
Vendored
11 lines
150 B
Kotlin
Vendored
enum class A {
|
|
X, Y;
|
|
companion object {
|
|
fun foo(): Int {
|
|
return 1
|
|
}
|
|
}
|
|
|
|
fun foo(): Int = Companion.foo()
|
|
}
|