Files
kotlin-fork/compiler/testData/codegen/box/jvmStatic/propertyGetterDelegatesToAnother.kt
T
Denis Zharkov b989bfce59 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
2017-02-10 16:05:15 +03:00

13 lines
222 B
Kotlin
Vendored

// WITH_RUNTIME
// TARGET_BACKEND: JVM
object ObjectThisTest {
val testValue: String
@JvmStatic get() = this.testValue2
val testValue2: String
get() = "OK"
}
fun box() = ObjectThisTest.testValue