KT-8968 Special completion after "super."

#KT-8968 Fixed
This commit is contained in:
Valentin Kipyatkov
2015-11-03 22:16:08 +03:00
parent 99b35257c6
commit e33e1ef8d7
14 changed files with 158 additions and 11 deletions
@@ -0,0 +1,18 @@
open class B<T> {
open fun xxx_foo(p1: T, vararg p2: String) {}
open fun xxx_bar(p1: Int, p2: String) {}
open val xxx_val: Int = 0
}
class C : B<String>() {
override fun xxx_foo(p1: String, vararg p2: String) {
super.xxx_<caret>
}
}
// WITH_ORDER
// EXIST: { lookupString: "xxx_foo", itemText: "xxx_foo", tailText: "(p1, *p2)", typeText: "Unit", attributes: "bold" }
// EXIST: { lookupString: "xxx_foo", itemText: "xxx_foo", tailText: "(p1: String, vararg p2: String)", typeText: "Unit", attributes: "bold" }
// EXIST: { lookupString: "xxx_val", itemText: "xxx_val", tailText: null, typeText: "Int", attributes: "bold" }
// EXIST: { lookupString: "xxx_bar", itemText: "xxx_bar", tailText: "(p1: Int, p2: String)", typeText: "Unit", attributes: "bold" }
// NOTHING_ELSE
@@ -0,0 +1,17 @@
open class B {
open fun foo() {}
open fun bar() {}
}
class C : B() {
override fun foo() {
super.<caret>
}
}
// EXIST: { lookupString: "foo", itemText: "foo", tailText: "()", typeText: "Unit", attributes: "bold" }
// EXIST: { lookupString: "bar", itemText: "bar", tailText: "()", typeText: "Unit", attributes: "bold" }
// EXIST: equals
// EXIST: hashCode
// EXIST: toString
// NOTHING_ELSE