01e5ee718f
#KT-6967 Fixed
18 lines
205 B
Kotlin
18 lines
205 B
Kotlin
trait A {
|
|
fun foo(): String
|
|
}
|
|
|
|
class B : A {
|
|
override fun foo() = "OK"
|
|
}
|
|
|
|
val global = B()
|
|
|
|
class C(x: Int) : A by global {
|
|
constructor(): this(1)
|
|
}
|
|
|
|
fun box(): String {
|
|
return C().foo()
|
|
}
|