Completion after "this@" includes immediate this too
#KT-6836 Fixed
This commit is contained in:
@@ -7,7 +7,7 @@ class Outer {
|
||||
}
|
||||
|
||||
// ABSENT: this
|
||||
// ABSENT: "this@foo"
|
||||
// EXIST: { lookupString: "this@foo", itemText: "this", tailText: "@foo", typeText: "String", attributes: "bold" }
|
||||
// EXIST: { lookupString: "this@Inner", itemText: "this", tailText: "@Inner", typeText: "Outer.Inner", attributes: "bold" }
|
||||
// EXIST: { lookupString: "this@Outer", itemText: "this", tailText: "@Outer", typeText: "Outer", attributes: "bold" }
|
||||
// NUMBER: 2
|
||||
// NUMBER: 3
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
val String.foo: Int
|
||||
get() = this@<caret>.length()
|
||||
|
||||
// EXIST: "this@foo"
|
||||
// NUMBER: 1
|
||||
@@ -7,7 +7,7 @@ class Outer {
|
||||
}
|
||||
|
||||
// ABSENT: this
|
||||
// ABSENT: "this@foo"
|
||||
// EXIST: { lookupString: "this@foo", itemText: "this", tailText: "@foo", typeText: "String", attributes: "bold" }
|
||||
// EXIST: { lookupString: "this@Inner", itemText: "this", tailText: "@Inner", typeText: "Outer.Inner", attributes: "bold" }
|
||||
// EXIST: { lookupString: "this@Outer", itemText: "this", tailText: "@Outer", typeText: "Outer", attributes: "bold" }
|
||||
// NUMBER: 2
|
||||
// NUMBER: 3
|
||||
|
||||
Reference in New Issue
Block a user