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,6 +1,4 @@
|
||||
enum class <caret>E {
|
||||
open fun foo(n: Int): Int = n
|
||||
|
||||
O
|
||||
A {
|
||||
override fun foo(n: Int): Int = n + 1
|
||||
@@ -10,6 +8,8 @@ enum class <caret>E {
|
||||
override fun foo(n: Int): Int = n + 2
|
||||
|
||||
}
|
||||
|
||||
open fun foo(n: Int): Int = n
|
||||
}
|
||||
|
||||
// REF: (E).A
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
enum class E {
|
||||
open fun <caret>foo(n: Int): Int = n
|
||||
|
||||
O
|
||||
A {
|
||||
override fun foo(n: Int): Int = n + 1
|
||||
@@ -10,6 +8,8 @@ enum class E {
|
||||
override fun foo(n: Int): Int = n + 2
|
||||
|
||||
}
|
||||
|
||||
open fun <caret>foo(n: Int): Int = n
|
||||
}
|
||||
|
||||
// REF: (in E.A).foo(Int)
|
||||
|
||||
Reference in New Issue
Block a user