Skip to content

Commit d24ebf7

Browse files
author
Mikhael Bogdanov
committed
Fix for KT-16441: NoSuchFieldError: $$delegatedProperties when delegating through provideDelegate in companion object
#KT-16441 Fixed
1 parent a8625b6 commit d24ebf7

File tree

87 files changed

+164
-98
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

87 files changed

+164
-98
lines changed

compiler/backend/src/org/jetbrains/kotlin/codegen/MemberCodegen.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -499,10 +499,11 @@ private void initializeProperty(@NotNull ExpressionCodegen codegen, @NotNull KtP
499499
int indexOfDelegatedProperty = PropertyCodegen.indexOfDelegatedProperty(property);
500500

501501
StackValue delegateValue = PropertyCodegen.invokeDelegatedPropertyConventionMethodWithReceiver(
502-
codegen, typeMapper, provideDelegateResolvedCall, indexOfDelegatedProperty, 1, provideDelegateReceiver);
502+
codegen, typeMapper, provideDelegateResolvedCall, indexOfDelegatedProperty, 1,
503+
provideDelegateReceiver, propertyDescriptor
504+
);
503505

504506
propValue.store(delegateValue, codegen.v);
505-
506507
}
507508

508509
protected boolean shouldInitializeProperty(@NotNull KtProperty property) {
@@ -590,7 +591,7 @@ protected void generatePropertyMetadataArrayFieldIfNeeded(@NotNull Type thisAsmT
590591
}
591592
if (delegatedProperties.isEmpty()) return;
592593

593-
v.newField(NO_ORIGIN, ACC_PRIVATE | ACC_STATIC | ACC_FINAL | ACC_SYNTHETIC, JvmAbi.DELEGATED_PROPERTIES_ARRAY_NAME,
594+
v.newField(NO_ORIGIN, ACC_STATIC | ACC_FINAL | ACC_SYNTHETIC, JvmAbi.DELEGATED_PROPERTIES_ARRAY_NAME,
594595
"[" + K_PROPERTY_TYPE, null, null);
595596

596597
if (!state.getClassBuilderMode().generateBodies) return;

compiler/backend/src/org/jetbrains/kotlin/codegen/PropertyCodegen.java

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757

5858
import static org.jetbrains.kotlin.codegen.AsmUtil.getDeprecatedAccessFlag;
5959
import static org.jetbrains.kotlin.codegen.AsmUtil.getVisibilityForBackingField;
60+
import static org.jetbrains.kotlin.codegen.AsmUtil.isPropertyWithBackingFieldCopyInOuterClass;
6061
import static org.jetbrains.kotlin.codegen.JvmCodegenUtil.isConstOrHasJvmFieldAnnotation;
6162
import static org.jetbrains.kotlin.codegen.JvmCodegenUtil.isJvmInterface;
6263
import static org.jetbrains.kotlin.codegen.serialization.JvmSerializationBindings.FIELD_FOR_PROPERTY;
@@ -534,7 +535,7 @@ public static StackValue invokeDelegatedPropertyConventionMethod(
534535
StackValue.Property receiver = codegen.intermediateValueForProperty(propertyDescriptor, true, null, StackValue.LOCAL_0);
535536
return invokeDelegatedPropertyConventionMethodWithReceiver(
536537
codegen, typeMapper, resolvedCall, indexInPropertyMetadataArray, propertyMetadataArgumentIndex,
537-
receiver
538+
receiver, propertyDescriptor
538539
);
539540
}
540541

@@ -544,9 +545,12 @@ public static StackValue invokeDelegatedPropertyConventionMethodWithReceiver(
544545
@NotNull ResolvedCall<FunctionDescriptor> resolvedCall,
545546
final int indexInPropertyMetadataArray,
546547
int propertyMetadataArgumentIndex,
547-
@Nullable StackValue receiver
548+
@Nullable StackValue receiver,
549+
@NotNull PropertyDescriptor propertyDescriptor
548550
) {
549-
final Type owner = getDelegatedPropertyMetadataOwner(codegen, typeMapper);
551+
final Type owner = JvmAbi.isPropertyWithBackingFieldInOuterClass(propertyDescriptor) ?
552+
codegen.getState().getTypeMapper().mapOwner(propertyDescriptor) :
553+
getDelegatedPropertyMetadataOwner(codegen, typeMapper);
550554

551555
codegen.tempVariables.put(
552556
resolvedCall.getCall().getValueArguments().get(propertyMetadataArgumentIndex).asElement(),
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import kotlin.reflect.KProperty
2+
3+
class Delegate {
4+
operator fun provideDelegate(thisRef: Any?, property: KProperty<*>) = this
5+
operator fun getValue(thisRef: Any?, property: KProperty<*>) = "OK"
6+
}
7+
8+
class TestClass {
9+
companion object {
10+
val test by Delegate()
11+
}
12+
}
13+
14+
fun box(): String {
15+
return TestClass.test
16+
}

compiler/testData/codegen/bytecodeListing/annotations/onProperties.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
@kotlin.Metadata
22
public final class A {
3-
private synthetic final static field $$delegatedProperties: kotlin.reflect.KProperty[]
3+
synthetic final static field $$delegatedProperties: kotlin.reflect.KProperty[]
44
private @AnnField field p: int
55
private final @AnnDelegate @org.jetbrains.annotations.NotNull field s$delegate: CustomDelegate
66
private final @AnnField field x: int

compiler/testData/codegen/light-analysis/annotations/delegatedPropertySetter.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public annotation class First
1717

1818
@kotlin.Metadata
1919
public final class MyClass {
20-
private synthetic final static field $$delegatedProperties: kotlin.reflect.KProperty[]
20+
synthetic final static field $$delegatedProperties: kotlin.reflect.KProperty[]
2121
private final @org.jetbrains.annotations.NotNull field x$delegate: Delegate
2222
public method <init>(): void
2323
public final @org.jetbrains.annotations.NotNull method getX(): java.lang.String

compiler/testData/codegen/light-analysis/annotations/jvmAnnotationFlags.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
@kotlin.Metadata
22
public final class C {
3-
private synthetic final static field $$delegatedProperties: kotlin.reflect.KProperty[]
3+
synthetic final static field $$delegatedProperties: kotlin.reflect.KProperty[]
44
private final @kotlin.jvm.Transient @org.jetbrains.annotations.NotNull field del$delegate: CustomDelegate
55
private final @kotlin.jvm.Transient field tra: int
66
private volatile @kotlin.jvm.Volatile field vol: int

compiler/testData/codegen/light-analysis/callableReference/property/delegated.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
@kotlin.Metadata
22
public final class A {
3-
private synthetic final static field $$delegatedProperties: kotlin.reflect.KProperty[]
3+
synthetic final static field $$delegatedProperties: kotlin.reflect.KProperty[]
44
private final @org.jetbrains.annotations.NotNull field two$delegate: NumberDecrypter
55
public method <init>(): void
66
public final method getTwo(): int
77
}
88

99
@kotlin.Metadata
1010
public final class DelegatedKt {
11-
private synthetic final static field $$delegatedProperties: kotlin.reflect.KProperty[]
11+
synthetic final static field $$delegatedProperties: kotlin.reflect.KProperty[]
1212
private final static @org.jetbrains.annotations.NotNull field four$delegate: NumberDecrypter
1313
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
1414
public final static method getFour(): int

compiler/testData/codegen/light-analysis/callableReference/property/delegatedMutable.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public final class Delegate {
1111

1212
@kotlin.Metadata
1313
public final class DelegatedMutableKt {
14-
private synthetic final static field $$delegatedProperties: kotlin.reflect.KProperty[]
14+
synthetic final static field $$delegatedProperties: kotlin.reflect.KProperty[]
1515
private final static @org.jetbrains.annotations.NotNull field result$delegate: Delegate
1616
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
1717
public final static @org.jetbrains.annotations.NotNull method getResult(): java.lang.String

compiler/testData/codegen/light-analysis/callableReference/property/genericProperty.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ public final class DVal {
88

99
@kotlin.Metadata
1010
public final class GenericPropertyKt {
11-
private synthetic final static field $$delegatedProperties: kotlin.reflect.KProperty[]
11+
synthetic final static field $$delegatedProperties: kotlin.reflect.KProperty[]
1212
private final static @org.jetbrains.annotations.Nullable field additionalText$delegate: DVal
1313
private final static field additionalValue$delegate: DVal
1414
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String

compiler/testData/codegen/light-analysis/delegatedProperty/accessTopLevelDelegatedPropertyInClinit.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
@kotlin.Metadata
22
public final class AccessTopLevelDelegatedPropertyInClinitKt {
3-
private synthetic final static field $$delegatedProperties: kotlin.reflect.KProperty[]
3+
synthetic final static field $$delegatedProperties: kotlin.reflect.KProperty[]
44
private final static @org.jetbrains.annotations.NotNull field a: java.lang.String
55
private final static @org.jetbrains.annotations.NotNull field prop$delegate: Delegate
66
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String

compiler/testData/codegen/light-analysis/delegatedProperty/capturePropertyInClosure.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
@kotlin.Metadata
22
public final class B {
3-
private synthetic final static field $$delegatedProperties: kotlin.reflect.KProperty[]
3+
synthetic final static field $$delegatedProperties: kotlin.reflect.KProperty[]
44
private final field value$delegate: Delegate
55
public method <init>(): void
66
private final method getValue(): int

compiler/testData/codegen/light-analysis/delegatedProperty/castGetReturnType.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
@kotlin.Metadata
22
public final class AImpl {
3-
private synthetic final static field $$delegatedProperties: kotlin.reflect.KProperty[]
3+
synthetic final static field $$delegatedProperties: kotlin.reflect.KProperty[]
44
private final @org.jetbrains.annotations.NotNull field prop$delegate: Delegate
55
public method <init>(): void
66
public final @org.jetbrains.annotations.NotNull method getProp(): java.lang.Number

compiler/testData/codegen/light-analysis/delegatedProperty/castSetParameter.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
@kotlin.Metadata
22
public final class A {
3-
private synthetic final static field $$delegatedProperties: kotlin.reflect.KProperty[]
3+
synthetic final static field $$delegatedProperties: kotlin.reflect.KProperty[]
44
private final @org.jetbrains.annotations.NotNull field prop$delegate: Delegate
55
public method <init>(): void
66
public final @org.jetbrains.annotations.NotNull method getProp(): Derived

compiler/testData/codegen/light-analysis/delegatedProperty/delegateAsInnerClass.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
@kotlin.Metadata
22
public final class A {
3-
private synthetic final static field $$delegatedProperties: kotlin.reflect.KProperty[]
3+
synthetic final static field $$delegatedProperties: kotlin.reflect.KProperty[]
44
private final @org.jetbrains.annotations.NotNull field prop$delegate: A.Delegate
55
inner class A/Delegate
66
public method <init>(): void

compiler/testData/codegen/light-analysis/delegatedProperty/delegateByOtherProperty.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
@kotlin.Metadata
22
public final class A {
3-
private synthetic final static field $$delegatedProperties: kotlin.reflect.KProperty[]
3+
synthetic final static field $$delegatedProperties: kotlin.reflect.KProperty[]
44
private final @org.jetbrains.annotations.NotNull field p: Delegate
55
private final @org.jetbrains.annotations.NotNull field prop$delegate: Delegate
66
public method <init>(): void

compiler/testData/codegen/light-analysis/delegatedProperty/delegateByTopLevelFun.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
@kotlin.Metadata
22
public final class A {
3-
private synthetic final static field $$delegatedProperties: kotlin.reflect.KProperty[]
3+
synthetic final static field $$delegatedProperties: kotlin.reflect.KProperty[]
44
private final @org.jetbrains.annotations.NotNull field prop$delegate: Delegate
55
public method <init>(): void
66
public final method getProp(): int

compiler/testData/codegen/light-analysis/delegatedProperty/delegateByTopLevelProperty.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
@kotlin.Metadata
22
public final class A {
3-
private synthetic final static field $$delegatedProperties: kotlin.reflect.KProperty[]
3+
synthetic final static field $$delegatedProperties: kotlin.reflect.KProperty[]
44
private final @org.jetbrains.annotations.NotNull field prop$delegate: Delegate
55
public method <init>(): void
66
public final method getProp(): int

compiler/testData/codegen/light-analysis/delegatedProperty/delegateForExtProperty.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public final class Delegate {
1111

1212
@kotlin.Metadata
1313
public final class DelegateForExtPropertyKt {
14-
private synthetic final static field $$delegatedProperties: kotlin.reflect.KProperty[]
14+
synthetic final static field $$delegatedProperties: kotlin.reflect.KProperty[]
1515
private final static @org.jetbrains.annotations.NotNull field prop$delegate: Delegate
1616
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
1717
public final static method getProp(@org.jetbrains.annotations.NotNull p0: A): int

compiler/testData/codegen/light-analysis/delegatedProperty/delegateForExtPropertyInClass.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public final class DelegateForExtPropertyInClassKt {
1111

1212
@kotlin.Metadata
1313
public final class F {
14-
private synthetic final static field $$delegatedProperties: kotlin.reflect.KProperty[]
14+
synthetic final static field $$delegatedProperties: kotlin.reflect.KProperty[]
1515
private final @org.jetbrains.annotations.NotNull field prop$delegate: Delegate
1616
inner class F/A
1717
public method <init>(): void

compiler/testData/codegen/light-analysis/delegatedProperty/delegateWithPrivateSet.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ public final class DelegateWithPrivateSetKt {
55

66
@kotlin.Metadata
77
public final class My {
8-
private synthetic final static field $$delegatedProperties: kotlin.reflect.KProperty[]
8+
synthetic final static field $$delegatedProperties: kotlin.reflect.KProperty[]
99
private final @org.jetbrains.annotations.NotNull field delegate$delegate: kotlin.properties.ReadWriteProperty
1010
public method <init>(): void
1111
public final @org.jetbrains.annotations.NotNull method getDelegate(): java.lang.String

compiler/testData/codegen/light-analysis/delegatedProperty/extensionDelegatesWithSameNames.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public final class D {
1313

1414
@kotlin.Metadata
1515
public final class ExtensionDelegatesWithSameNamesKt {
16-
private synthetic final static field $$delegatedProperties: kotlin.reflect.KProperty[]
16+
synthetic final static field $$delegatedProperties: kotlin.reflect.KProperty[]
1717
private final static @org.jetbrains.annotations.NotNull field prop$delegate$1: D
1818
private final static @org.jetbrains.annotations.NotNull field prop$delegate: D
1919
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String

compiler/testData/codegen/light-analysis/delegatedProperty/extensionPropertyAndExtensionGetValue.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public final class B {
1414

1515
@kotlin.Metadata
1616
public final class ExtensionPropertyAndExtensionGetValueKt {
17-
private synthetic final static field $$delegatedProperties: kotlin.reflect.KProperty[]
17+
synthetic final static field $$delegatedProperties: kotlin.reflect.KProperty[]
1818
private final static @org.jetbrains.annotations.NotNull field prop$delegate: A
1919
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
2020
public final static @org.jetbrains.annotations.NotNull method getProp(@org.jetbrains.annotations.NotNull p0: B): java.lang.String

compiler/testData/codegen/light-analysis/delegatedProperty/genericDelegate.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ public final class A {
66

77
@kotlin.Metadata
88
public final class A/B {
9-
private synthetic final static field $$delegatedProperties: kotlin.reflect.KProperty[]
9+
synthetic final static field $$delegatedProperties: kotlin.reflect.KProperty[]
1010
private final @org.jetbrains.annotations.NotNull field prop$delegate: Delegate
1111
synthetic final field this$0: A
1212
inner class A/B

compiler/testData/codegen/light-analysis/delegatedProperty/getAsExtensionFun.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
@kotlin.Metadata
22
public final class A {
3-
private synthetic final static field $$delegatedProperties: kotlin.reflect.KProperty[]
3+
synthetic final static field $$delegatedProperties: kotlin.reflect.KProperty[]
44
private final @org.jetbrains.annotations.NotNull field prop$delegate: Delegate
55
public method <init>(): void
66
public final method getProp(): int

compiler/testData/codegen/light-analysis/delegatedProperty/getAsExtensionFunInClass.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
@kotlin.Metadata
22
public final class A {
3-
private synthetic final static field $$delegatedProperties: kotlin.reflect.KProperty[]
3+
synthetic final static field $$delegatedProperties: kotlin.reflect.KProperty[]
44
private final @org.jetbrains.annotations.NotNull field prop$delegate: Delegate
55
public method <init>(): void
66
public final method getProp(): int

compiler/testData/codegen/light-analysis/delegatedProperty/getDelegateWithoutReflection.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ public final class Delegate {
77

88
@kotlin.Metadata
99
public final class GetDelegateWithoutReflectionKt {
10-
private synthetic final static field $$delegatedProperties: kotlin.reflect.KProperty[]
10+
synthetic final static field $$delegatedProperties: kotlin.reflect.KProperty[]
1111
private final static @org.jetbrains.annotations.NotNull field foo$delegate: Delegate
1212
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
1313
public final static @org.jetbrains.annotations.NotNull method getFoo(): java.lang.String

compiler/testData/codegen/light-analysis/delegatedProperty/inClassVal.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
@kotlin.Metadata
22
public final class A {
3-
private synthetic final static field $$delegatedProperties: kotlin.reflect.KProperty[]
3+
synthetic final static field $$delegatedProperties: kotlin.reflect.KProperty[]
44
private final @org.jetbrains.annotations.NotNull field prop$delegate: Delegate
55
public method <init>(): void
66
public final method getProp(): int

compiler/testData/codegen/light-analysis/delegatedProperty/inClassVar.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
@kotlin.Metadata
22
public final class A {
3-
private synthetic final static field $$delegatedProperties: kotlin.reflect.KProperty[]
3+
synthetic final static field $$delegatedProperties: kotlin.reflect.KProperty[]
44
private final @org.jetbrains.annotations.NotNull field prop$delegate: Delegate
55
public method <init>(): void
66
public final method getProp(): int

compiler/testData/codegen/light-analysis/delegatedProperty/inTrait.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ public interface A {
55

66
@kotlin.Metadata
77
public final class AImpl {
8-
private synthetic final static field $$delegatedProperties: kotlin.reflect.KProperty[]
8+
synthetic final static field $$delegatedProperties: kotlin.reflect.KProperty[]
99
private final @org.jetbrains.annotations.NotNull field prop$delegate: Delegate
1010
public method <init>(): void
1111
public method getProp(): int

compiler/testData/codegen/light-analysis/delegatedProperty/inferredPropertyType.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ public final class A {
66

77
@kotlin.Metadata
88
public final class A/B {
9-
private synthetic final static field $$delegatedProperties: kotlin.reflect.KProperty[]
9+
synthetic final static field $$delegatedProperties: kotlin.reflect.KProperty[]
1010
private final @org.jetbrains.annotations.NotNull field prop$delegate: Delegate
1111
synthetic final field this$0: A
1212
inner class A/B

compiler/testData/codegen/light-analysis/delegatedProperty/kt4138.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public final class Foo {
2121

2222
@kotlin.Metadata
2323
public final static class Foo/Companion {
24-
private synthetic final static field $$delegatedProperties: kotlin.reflect.KProperty[]
24+
synthetic final static field $$delegatedProperties: kotlin.reflect.KProperty[]
2525
inner class Foo/Companion
2626
private method <init>(): void
2727
public final @org.jetbrains.annotations.NotNull method getA(): Foo
@@ -37,7 +37,7 @@ public interface FooTrait {
3737

3838
@kotlin.Metadata
3939
public final static class FooTrait/Companion {
40-
private synthetic final static field $$delegatedProperties: kotlin.reflect.KProperty[]
40+
synthetic final static field $$delegatedProperties: kotlin.reflect.KProperty[]
4141
private final static @org.jetbrains.annotations.NotNull field A$delegate: Delegate
4242
private final static @org.jetbrains.annotations.NotNull field B$delegate: Delegate
4343
inner class FooTrait/Companion

compiler/testData/codegen/light-analysis/delegatedProperty/kt9712.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
@kotlin.Metadata
22
public class A {
3-
private synthetic final static field $$delegatedProperties: kotlin.reflect.KProperty[]
3+
synthetic final static field $$delegatedProperties: kotlin.reflect.KProperty[]
44
private final @org.jetbrains.annotations.NotNull field K$delegate: kotlin.properties.ReadWriteProperty
55
public method <init>(): void
66
public final @org.jetbrains.annotations.NotNull method getK(): java.lang.String
@@ -19,7 +19,7 @@ public final class Kt9712Kt {
1919

2020
@kotlin.Metadata
2121
public final class X {
22-
private synthetic final static field $$delegatedProperties: kotlin.reflect.KProperty[]
22+
synthetic final static field $$delegatedProperties: kotlin.reflect.KProperty[]
2323
public final static field INSTANCE: X
2424
private final static @org.jetbrains.annotations.NotNull field O$delegate: kotlin.properties.ReadWriteProperty
2525
private method <init>(): void

compiler/testData/codegen/light-analysis/delegatedProperty/privateSetterKPropertyIsNotMutable.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ public final class Delegate {
88

99
@kotlin.Metadata
1010
public final class My {
11-
private synthetic final static field $$delegatedProperties: kotlin.reflect.KProperty[]
11+
synthetic final static field $$delegatedProperties: kotlin.reflect.KProperty[]
1212
private final @org.jetbrains.annotations.NotNull field delegate$delegate: Delegate
1313
public method <init>(): void
1414
public final @org.jetbrains.annotations.NotNull method getDelegate(): java.lang.String

compiler/testData/codegen/light-analysis/delegatedProperty/privateVar.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
@kotlin.Metadata
22
public final class A {
3-
private synthetic final static field $$delegatedProperties: kotlin.reflect.KProperty[]
3+
synthetic final static field $$delegatedProperties: kotlin.reflect.KProperty[]
44
private final field prop$delegate: Delegate
55
public method <init>(): void
66
private final method getProp(): int

0 commit comments

Comments
 (0)