KT-12068 Special completion item for "[]" get-operator access
#KT-12068 Fixed
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
package p
|
||||
|
||||
class C
|
||||
|
||||
operator fun C.get(p: Int): Int = 0
|
||||
|
||||
fun foo(c: C) {
|
||||
c.<caret>
|
||||
}
|
||||
|
||||
// EXIST: { lookupString: "[]", itemText: "[]", tailText: "(p: Int) for C in p", typeText: "Int", attributes: "bold" }
|
||||
@@ -0,0 +1,5 @@
|
||||
fun some(list: List<String>?) {
|
||||
list?.<caret>
|
||||
}
|
||||
|
||||
// ABSENT: "[]"
|
||||
@@ -0,0 +1,5 @@
|
||||
fun some(list: List<String>) {
|
||||
list.<caret>
|
||||
}
|
||||
|
||||
// EXIST: { lookupString: "[]", itemText: "[]", tailText: "(index: Int)", typeText: "String", attributes: "bold" }
|
||||
Reference in New Issue
Block a user