mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-11 00:21:29 +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
14 lines
176 B
Kotlin
14 lines
176 B
Kotlin
// KT-4878
|
|
|
|
import fieldAccessFromExtensionInTraitImpl as D
|
|
|
|
trait T {
|
|
fun Int.foo(d: D) = d.result!!
|
|
}
|
|
|
|
class A : T {
|
|
fun bar() = 42.foo(D())
|
|
}
|
|
|
|
fun box() = A().bar()
|