KT-8968 Special completion after "super."
#KT-8968 Fixed
This commit is contained in:
@@ -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
|
||||
@@ -8,4 +8,5 @@ class Derived : Base() {
|
||||
}
|
||||
}
|
||||
|
||||
// ELEMENT: foo
|
||||
// ELEMENT: foo
|
||||
// TAIL_TEXT: "(p: Int)"
|
||||
@@ -8,4 +8,5 @@ class Derived : Base() {
|
||||
}
|
||||
}
|
||||
|
||||
// ELEMENT: foo
|
||||
// ELEMENT: foo
|
||||
// TAIL_TEXT: "(p: Int)"
|
||||
@@ -0,0 +1,12 @@
|
||||
open class Base {
|
||||
open fun foo(p1: Int, vararg p2: Int){}
|
||||
}
|
||||
|
||||
class Derived : Base() {
|
||||
override fun foo(p1: Int, vararg p2: Int) {
|
||||
super.<caret>
|
||||
}
|
||||
}
|
||||
|
||||
// ELEMENT: foo
|
||||
// TAIL_TEXT: "(p1, *p2)"
|
||||
@@ -0,0 +1,12 @@
|
||||
open class Base {
|
||||
open fun foo(p1: Int, vararg p2: Int){}
|
||||
}
|
||||
|
||||
class Derived : Base() {
|
||||
override fun foo(p1: Int, vararg p2: Int) {
|
||||
super.foo(p1, *p2)<caret>
|
||||
}
|
||||
}
|
||||
|
||||
// ELEMENT: foo
|
||||
// TAIL_TEXT: "(p1, *p2)"
|
||||
@@ -0,0 +1,16 @@
|
||||
open class B {
|
||||
open fun foo(p1: Int, p2: String): Int = 0
|
||||
open fun bar(p1: Int, p2: String): Int = 0
|
||||
}
|
||||
|
||||
class C : B() {
|
||||
override fun foo(p1: Int, p2: String): Int {
|
||||
return super.<caret>
|
||||
}
|
||||
}
|
||||
|
||||
// EXIST: { lookupString: "foo", itemText: "foo", tailText: "(p1, p2)", typeText: "Int", attributes: "bold" }
|
||||
// EXIST: { lookupString: "foo", itemText: "foo", tailText: "(p1: Int, p2: String)", typeText: "Int", attributes: "bold" }
|
||||
// EXIST: { lookupString: "bar", itemText: "bar", tailText: "(p1: Int, p2: String)", typeText: "Int", attributes: "bold" }
|
||||
// EXIST: hashCode
|
||||
// NOTHING_ELSE
|
||||
Reference in New Issue
Block a user