Drop excessive lowerings that are replaced by ConstEvaluationLowering
This commit is contained in:
@@ -7,7 +7,7 @@ class A {
|
||||
val b = A::b.name
|
||||
val c = ::A.name
|
||||
|
||||
val d = this::a.name
|
||||
val e = A()::b.name
|
||||
// val d = this::a.name // Not supported
|
||||
// val e = A()::b.name // Not supported
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,4 +15,4 @@ const val stringClassName = ::String.name
|
||||
const val lengthPropName = String::length.name
|
||||
|
||||
const val errorAccess = <!CONST_VAL_WITH_NON_CONST_INITIALIZER!>SomeClassWithName(1)::property.name<!>
|
||||
const val errorPlus = <!CONST_VAL_WITH_NON_CONST_INITIALIZER!>"" + ::SomeClassWithName.<!UNRESOLVED_REFERENCE!>property<!><!>
|
||||
const val errorPlus = <!CONST_VAL_WITH_NON_CONST_INITIALIZER!>"" + SomeClassWithName(1)::property<!>
|
||||
|
||||
@@ -15,4 +15,4 @@ const val stringClassName = <!CONST_VAL_WITH_NON_CONST_INITIALIZER!>::String.nam
|
||||
const val lengthPropName = <!CONST_VAL_WITH_NON_CONST_INITIALIZER!>String::length.name<!>
|
||||
|
||||
const val errorAccess = <!CONST_VAL_WITH_NON_CONST_INITIALIZER!>SomeClassWithName(1)::property.name<!>
|
||||
const val errorPlus = <!CONST_VAL_WITH_NON_CONST_INITIALIZER!>"" + ::SomeClassWithName.property<!>
|
||||
const val errorPlus = <!CONST_VAL_WITH_NON_CONST_INITIALIZER!>"" + SomeClassWithName(1)::property<!>
|
||||
|
||||
@@ -4,6 +4,7 @@ public const val anotherPropName: kotlin.String
|
||||
public const val barName: kotlin.String
|
||||
public const val className: kotlin.String
|
||||
public const val errorAccess: kotlin.String
|
||||
public const val errorPlus: kotlin.String
|
||||
public const val fooName: kotlin.String
|
||||
public const val lengthPropName: kotlin.String
|
||||
public const val propName: kotlin.String
|
||||
|
||||
Reference in New Issue
Block a user