Perform InnerClassLowerings after CallableReferenceLowering
This commit is contained in:
@@ -44,8 +44,6 @@ class JvmLower(val context: JvmBackendContext) {
|
|||||||
InterfaceLowering(context.state).runOnFilePostfix(irFile)
|
InterfaceLowering(context.state).runOnFilePostfix(irFile)
|
||||||
InterfaceDelegationLowering(context.state).runOnFilePostfix(irFile)
|
InterfaceDelegationLowering(context.state).runOnFilePostfix(irFile)
|
||||||
SharedVariablesLowering(context).runOnFilePostfix(irFile)
|
SharedVariablesLowering(context).runOnFilePostfix(irFile)
|
||||||
InnerClassesLowering(context).runOnFilePostfix(irFile)
|
|
||||||
InnerClassConstructorCallsLowering(context).runOnFilePostfix(irFile)
|
|
||||||
|
|
||||||
irFile.acceptVoid(PatchDeclarationParentsVisitor())
|
irFile.acceptVoid(PatchDeclarationParentsVisitor())
|
||||||
|
|
||||||
@@ -59,6 +57,11 @@ class JvmLower(val context: JvmBackendContext) {
|
|||||||
).runOnFilePostfix(irFile)
|
).runOnFilePostfix(irFile)
|
||||||
CallableReferenceLowering(context).lower(irFile)
|
CallableReferenceLowering(context).lower(irFile)
|
||||||
|
|
||||||
|
InnerClassesLowering(context).runOnFilePostfix(irFile)
|
||||||
|
InnerClassConstructorCallsLowering(context).runOnFilePostfix(irFile)
|
||||||
|
|
||||||
|
irFile.acceptVoid(PatchDeclarationParentsVisitor())
|
||||||
|
|
||||||
EnumClassLowering(context).runOnFilePostfix(irFile)
|
EnumClassLowering(context).runOnFilePostfix(irFile)
|
||||||
//Should be before SyntheticAccessorLowering cause of synthetic accessor for companion constructor
|
//Should be before SyntheticAccessorLowering cause of synthetic accessor for companion constructor
|
||||||
ObjectClassLowering(context).lower(irFile)
|
ObjectClassLowering(context).lower(irFile)
|
||||||
|
|||||||
-1
@@ -1,4 +1,3 @@
|
|||||||
// IGNORE_BACKEND: JVM_IR
|
|
||||||
class A {
|
class A {
|
||||||
inner class Inner {
|
inner class Inner {
|
||||||
val o = 111
|
val o = 111
|
||||||
|
|||||||
-1
@@ -1,4 +1,3 @@
|
|||||||
// IGNORE_BACKEND: JVM_IR
|
|
||||||
class A {
|
class A {
|
||||||
inner class Inner {
|
inner class Inner {
|
||||||
val o = 111
|
val o = 111
|
||||||
|
|||||||
Vendored
-1
@@ -1,4 +1,3 @@
|
|||||||
// IGNORE_BACKEND: JVM_IR
|
|
||||||
class A {
|
class A {
|
||||||
inner class Inner {
|
inner class Inner {
|
||||||
val o = 111
|
val o = 111
|
||||||
|
|||||||
compiler/testData/codegen/box/callableReference/function/innerConstructorFromTopLevelOneStringArg.kt
Vendored
-1
@@ -1,4 +1,3 @@
|
|||||||
// IGNORE_BACKEND: JVM_IR
|
|
||||||
class A {
|
class A {
|
||||||
inner class Inner(val result: Int)
|
inner class Inner(val result: Int)
|
||||||
}
|
}
|
||||||
|
|||||||
-1
@@ -1,4 +1,3 @@
|
|||||||
// IGNORE_BACKEND: JVM_IR
|
|
||||||
abstract class Base(val fn: () -> Test)
|
abstract class Base(val fn: () -> Test)
|
||||||
|
|
||||||
enum class Test(val ok: String) {
|
enum class Test(val ok: String) {
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
// IGNORE_BACKEND: JVM_IR
|
|
||||||
public class Test {
|
public class Test {
|
||||||
val content = 1
|
val content = 1
|
||||||
inner class A {
|
inner class A {
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
// IGNORE_BACKEND: JVM_IR
|
|
||||||
class Bar(val name: String)
|
class Bar(val name: String)
|
||||||
|
|
||||||
abstract class Foo {
|
abstract class Foo {
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
// IGNORE_BACKEND: JVM_IR
|
|
||||||
fun box(): String {
|
fun box(): String {
|
||||||
val o = object {
|
val o = object {
|
||||||
inner class A(val value: String = "OK")
|
inner class A(val value: String = "OK")
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
// IGNORE_BACKEND: JVM_IR
|
|
||||||
enum class X {
|
enum class X {
|
||||||
|
|
||||||
B {
|
B {
|
||||||
|
|||||||
-1
@@ -1,4 +1,3 @@
|
|||||||
// IGNORE_BACKEND: JVM_IR
|
|
||||||
fun box(): String {
|
fun box(): String {
|
||||||
val capture = "oh"
|
val capture = "oh"
|
||||||
|
|
||||||
|
|||||||
-1
@@ -1,4 +1,3 @@
|
|||||||
// IGNORE_BACKEND: JVM_IR
|
|
||||||
fun box(): String {
|
fun box(): String {
|
||||||
class Local {
|
class Local {
|
||||||
open inner class Inner(val s: String) {
|
open inner class Inner(val s: String) {
|
||||||
|
|||||||
-1
@@ -1,4 +1,3 @@
|
|||||||
// IGNORE_BACKEND: JVM_IR
|
|
||||||
fun box(): String {
|
fun box(): String {
|
||||||
val capture = "O"
|
val capture = "O"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user