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.
This commit is contained in:
@@ -1,12 +1,6 @@
|
||||
// PSI_ELEMENT: org.jetbrains.kotlin.psi.JetNamedFunction
|
||||
// OPTIONS: usages
|
||||
enum class E {
|
||||
init {
|
||||
foo(1)
|
||||
}
|
||||
|
||||
open fun <caret>foo(n: Int): Int = n
|
||||
|
||||
O
|
||||
A {
|
||||
init {
|
||||
@@ -22,4 +16,10 @@ enum class E {
|
||||
|
||||
override fun foo(n: Int): Int = n + 2
|
||||
}
|
||||
|
||||
init {
|
||||
foo(1)
|
||||
}
|
||||
|
||||
open fun <caret>foo(n: Int): Int = n
|
||||
}
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
Function call (13: 13) foo(1)
|
||||
Function call (20: 13) foo(1)
|
||||
Function call (5: 9) foo(1)
|
||||
Function call (14: 13) foo(1)
|
||||
Function call (21: 9) foo(1)
|
||||
Function call (7: 13) foo(1)
|
||||
Reference in New Issue
Block a user