Files
kotlin-fork/idea/testData/navigation/implementations/EnumEntriesInheritance.kt
T
Mikhail Glukhikh cf741cb868 Enum parsing changed: first entries, then members. Grammar fixed accordingly.
A set of compiler tests and some plugin tests changed accordingly.
Compiler Kotlin code changed accordingly.
2015-05-15 16:13:27 +03:00

16 lines
215 B
Kotlin
Vendored

enum class <caret>E {
O
A {
override fun foo(n: Int): Int = n + 1
}
B {
override fun foo(n: Int): Int = n + 2
}
open fun foo(n: Int): Int = n
}
// REF: (E).A
// REF: (E).B