Correct CFA order for enums: first own members, then entries, and at last companion object members #KT-6054 Fixed
(cherry picked from commit 94d3b4c)
This commit is contained in:
committed by
Mikhail Glukhikh
parent
1bc7b4e363
commit
13e64c18d9
+4
-4
@@ -10,10 +10,10 @@ enum class E(val x: Int) {
|
||||
E1(0)
|
||||
}
|
||||
---------------------
|
||||
<v0>: E NEW: magic[FAKE_INITIALIZER](E1(0)) -> <v0>
|
||||
<v3>: Int NEW: magic[FAKE_INITIALIZER](val x: Int) -> <v3>
|
||||
0 <v1>: Int NEW: r(0) -> <v1>
|
||||
(0) <v2>: * NEW: call((0), <init>|<v1>) -> <v2>
|
||||
<v0>: Int NEW: magic[FAKE_INITIALIZER](val x: Int) -> <v0>
|
||||
<v1>: E NEW: magic[FAKE_INITIALIZER](E1(0)) -> <v1>
|
||||
0 <v2>: Int NEW: r(0) -> <v2>
|
||||
(0) <v3>: * NEW: call((0), <init>|<v2>) -> <v3>
|
||||
=====================
|
||||
== C ==
|
||||
class C {
|
||||
|
||||
Reference in New Issue
Block a user