mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-10 00:21:35 +00:00
"context.contextKind()" was incorrect in ExpressionCodegen.intermediateValueForProperty(), because it represents the context of the call site, not the context of the property declaration #KT-4878 Fixed
13 lines
233 B
Kotlin
13 lines
233 B
Kotlin
// KT-3492
|
|
|
|
class MyWrongClass : fieldAccessViaSubclass() {
|
|
|
|
}
|
|
|
|
fun box() : String {
|
|
val clazz = MyWrongClass()
|
|
clazz.fieldO = "O"
|
|
fieldAccessViaSubclass.fieldK = "K"
|
|
return clazz.fieldO!! + fieldAccessViaSubclass.fieldK!!
|
|
}
|