17 lines
293 B
Kotlin
17 lines
293 B
Kotlin
trait T {
|
|
fun foo1(){}
|
|
fun foo2(){}
|
|
}
|
|
|
|
class B(worker: T) : T by worker {
|
|
override fun foo1() { }
|
|
}
|
|
|
|
fun foo(b: B) {
|
|
b.<caret>
|
|
}
|
|
|
|
// EXIST: { itemText: "foo1", attributes: "bold" }
|
|
// EXIST: { itemText: "foo2", attributes: "" }
|
|
// EXIST: { itemText: "equals", attributes: "" }
|