Fix VerifyError with @JvmStatic annotated getter

The problem was that for property getter 'context.getContextDescriptor()'
references the containing property, while 'context.getFunctionDescriptor()'
the accessor itself

 #KT-15594 Fixed
This commit is contained in:
Denis Zharkov
2017-02-08 14:17:58 +03:00
parent dd275eda78
commit b989bfce59
5 changed files with 37 additions and 1 deletions
@@ -0,0 +1,12 @@
@kotlin.Metadata
public final class ObjectThisTest {
public final static field INSTANCE: ObjectThisTest
private method <init>(): void
public final static @kotlin.jvm.JvmStatic @org.jetbrains.annotations.NotNull method getTestValue(): java.lang.String
public final @org.jetbrains.annotations.NotNull method getTestValue2(): java.lang.String
}
@kotlin.Metadata
public final class PropertyGetterDelegatesToAnotherKt {
public final static @org.jetbrains.annotations.NotNull method box(): java.lang.String
}