Completion: bold members from immediate class
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
trait T {
|
||||
fun fromTrait(){}
|
||||
}
|
||||
|
||||
abstract class Base : T {
|
||||
fun fromBase(){}
|
||||
}
|
||||
|
||||
class Derived : Base() {
|
||||
override fun fromTrait() { }
|
||||
|
||||
fun fromDerived(){}
|
||||
}
|
||||
|
||||
fun foo(d: Derived) {
|
||||
d.<caret>
|
||||
}
|
||||
|
||||
// EXIST: { itemText: "fromTrait", attributes: "bold" }
|
||||
// EXIST: { itemText: "fromDerived", attributes: "bold" }
|
||||
// EXIST: { itemText: "fromBase", attributes: "" }
|
||||
// EXIST: { itemText: "hashCode", attributes: "" }
|
||||
// EXIST: { itemText: "equals", attributes: "" }
|
||||
@@ -0,0 +1,25 @@
|
||||
trait T {
|
||||
fun fromTrait(){}
|
||||
}
|
||||
|
||||
abstract class Base : T {
|
||||
fun fromBase(){}
|
||||
}
|
||||
|
||||
class Derived : Base() {
|
||||
override fun fromTrait() { }
|
||||
|
||||
fun fromDerived(){}
|
||||
}
|
||||
|
||||
fun foo(o: Any) {
|
||||
if (o is Derived) {
|
||||
o.<caret>
|
||||
}
|
||||
}
|
||||
|
||||
// EXIST: { itemText: "fromTrait", attributes: "bold" }
|
||||
// EXIST: { itemText: "fromDerived", attributes: "bold" }
|
||||
// EXIST: { itemText: "fromBase", attributes: "" }
|
||||
// EXIST: { itemText: "hashCode", attributes: "" }
|
||||
// EXIST: { itemText: "equals", attributes: "" }
|
||||
@@ -0,0 +1,14 @@
|
||||
trait T {
|
||||
fun f(){}
|
||||
}
|
||||
|
||||
fun foo(o: T) {
|
||||
if (o is Runnable) {
|
||||
o.<caret>
|
||||
}
|
||||
}
|
||||
|
||||
// EXIST: { itemText: "run", attributes: "bold" }
|
||||
// EXIST: { itemText: "f", attributes: "bold" }
|
||||
// EXIST: { itemText: "hashCode", attributes: "" }
|
||||
// EXIST: { itemText: "equals", attributes: "" }
|
||||
@@ -0,0 +1,16 @@
|
||||
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: "" }
|
||||
@@ -0,0 +1,24 @@
|
||||
trait T {
|
||||
fun fromTrait(){}
|
||||
}
|
||||
|
||||
abstract class Base : T {
|
||||
fun fromBase(){}
|
||||
}
|
||||
|
||||
class Derived : Base() {
|
||||
override fun fromTrait() { }
|
||||
|
||||
fun fromDerived(){}
|
||||
|
||||
fun foo(d: Derived) {
|
||||
<caret>
|
||||
}
|
||||
}
|
||||
|
||||
// EXIST: { itemText: "foo", attributes: "bold" }
|
||||
// EXIST: { itemText: "fromTrait", attributes: "bold" }
|
||||
// EXIST: { itemText: "fromDerived", attributes: "bold" }
|
||||
// EXIST: { itemText: "fromBase", attributes: "" }
|
||||
// EXIST: { itemText: "hashCode", attributes: "" }
|
||||
// EXIST: { itemText: "equals", attributes: "" }
|
||||
Reference in New Issue
Block a user