Experimental feature to show properties in completion after prefix with "get" or "set"
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
class C : Thread() {
|
||||
val property1: Int = 0
|
||||
var property2: Int = 0
|
||||
var xxx: Int = 0
|
||||
|
||||
fun getPPP() = 1
|
||||
}
|
||||
|
||||
fun foo(c: C) {
|
||||
c.getP<caret>
|
||||
}
|
||||
|
||||
// EXIST: property1
|
||||
// EXIST: property2
|
||||
// EXIST: getPPP
|
||||
// EXIST_JAVA_ONLY: priority
|
||||
// ABSENT: getPriority
|
||||
// ABSENT: xxx
|
||||
@@ -0,0 +1,16 @@
|
||||
class C {
|
||||
val property1: Int = 0
|
||||
var property2: Int = 0
|
||||
var xxx: Int = 0
|
||||
|
||||
fun setPPP(){}
|
||||
}
|
||||
|
||||
fun foo(c: C) {
|
||||
c.setP<caret>
|
||||
}
|
||||
|
||||
// ABSENT: property1
|
||||
// EXIST: property2
|
||||
// EXIST: setPPP
|
||||
// ABSENT: xxx
|
||||
-5
@@ -1,5 +0,0 @@
|
||||
fun foo(thread: Thread) {
|
||||
thread.get<caret>
|
||||
}
|
||||
|
||||
// EXIST_JAVA_ONLY: getPriority
|
||||
Reference in New Issue
Block a user