JVM IR: do not generate generic signature for $delegate field

See ee7bbbf530
This commit is contained in:
Alexander Udalov
2019-07-19 12:14:19 +02:00
parent 45f93521d9
commit 5f06c9e86c
3 changed files with 4 additions and 5 deletions
@@ -211,7 +211,9 @@ open class ClassCodegen protected constructor(
if (field.origin == IrDeclarationOrigin.FAKE_OVERRIDE) return
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()
// 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`.
@@ -1,4 +1,3 @@
// IGNORE_BACKEND: JVM_IR
// TARGET_BACKEND: JVM
// WITH_REFLECT
@@ -1,5 +1,3 @@
// IGNORE_BACKEND: JVM_IR
import kotlin.reflect.KProperty
import kotlin.reflect.KProperty1
@@ -17,4 +15,4 @@ class Test {
// field: Test::additionalText$delegate
// jvm signature: LDVal;
// generic signature: null
// generic signature: null