JVM IR: do not generate generic signature for $delegate field
See ee7bbbf530
This commit is contained in:
+3
-1
@@ -211,7 +211,9 @@ open class ClassCodegen protected constructor(
|
|||||||
if (field.origin == IrDeclarationOrigin.FAKE_OVERRIDE) return
|
if (field.origin == IrDeclarationOrigin.FAKE_OVERRIDE) return
|
||||||
|
|
||||||
val fieldType = typeMapper.mapType(field)
|
val fieldType = typeMapper.mapType(field)
|
||||||
val fieldSignature = typeMapper.mapFieldSignature(field)
|
val fieldSignature =
|
||||||
|
if (field.origin == IrDeclarationOrigin.DELEGATE) null
|
||||||
|
else typeMapper.mapFieldSignature(field)
|
||||||
val fieldName = field.name.asString()
|
val fieldName = field.name.asString()
|
||||||
// The ConstantValue attribute makes the initializer part of the ABI, which is why since 1.4
|
// The ConstantValue attribute makes the initializer part of the ABI, which is why since 1.4
|
||||||
// it is no longer set unless the property is explicitly `const`.
|
// it is no longer set unless the property is explicitly `const`.
|
||||||
|
|||||||
-1
@@ -1,4 +1,3 @@
|
|||||||
// IGNORE_BACKEND: JVM_IR
|
|
||||||
// TARGET_BACKEND: JVM
|
// TARGET_BACKEND: JVM
|
||||||
|
|
||||||
// WITH_REFLECT
|
// WITH_REFLECT
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
// IGNORE_BACKEND: JVM_IR
|
|
||||||
|
|
||||||
import kotlin.reflect.KProperty
|
import kotlin.reflect.KProperty
|
||||||
import kotlin.reflect.KProperty1
|
import kotlin.reflect.KProperty1
|
||||||
|
|
||||||
@@ -17,4 +15,4 @@ class Test {
|
|||||||
|
|
||||||
// field: Test::additionalText$delegate
|
// field: Test::additionalText$delegate
|
||||||
// jvm signature: LDVal;
|
// jvm signature: LDVal;
|
||||||
// generic signature: null
|
// generic signature: null
|
||||||
|
|||||||
Reference in New Issue
Block a user