mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
14 lines
180 B
Kotlin
Vendored
14 lines
180 B
Kotlin
Vendored
// KT-4878
|
|
|
|
import fieldAccessFromExtensionInTraitImpl as D
|
|
|
|
interface T {
|
|
fun Int.foo(d: D) = d.result!!
|
|
}
|
|
|
|
class A : T {
|
|
fun bar() = 42.foo(D())
|
|
}
|
|
|
|
fun box() = A().bar()
|