Synthetic java properties are not always bold in completion and are not sorted as extensions
This commit is contained in:
+15
@@ -0,0 +1,15 @@
|
||||
import java.io.File
|
||||
|
||||
class C : File("") {
|
||||
override fun isFile(): Boolean {
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
||||
fun f(pair: Pair<out File, out Any>) {
|
||||
if (pair.first !is C) return
|
||||
pair.first.<caret>
|
||||
}
|
||||
|
||||
// EXIST: { lookupString: "absolutePath", itemText: "absolutePath", tailText: " (from getAbsolutePath())", typeText: "String!", attributes: "bold" }
|
||||
// EXIST: { lookupString: "isFile", itemText: "isFile", tailText: " (from isFile())", typeText: "Boolean", attributes: "bold" }
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
import java.io.File
|
||||
|
||||
class C : File("") {
|
||||
val v: Int = 0
|
||||
}
|
||||
|
||||
fun f(pair: Pair<out Any, out Any>) {
|
||||
if (pair.first !is C) return
|
||||
pair.first.<caret>
|
||||
}
|
||||
|
||||
// EXIST: { lookupString: "absolutePath", itemText: "absolutePath", tailText: " (from getAbsolutePath())", typeText: "String!", attributes: "grayed" }
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
import java.io.File
|
||||
|
||||
class C : File("") {
|
||||
val v: Int = 0
|
||||
|
||||
override fun isFile(): Boolean {
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
||||
fun foo(c: C) {
|
||||
c.<caret>
|
||||
}
|
||||
|
||||
// EXIST: { lookupString: "absolutePath", itemText: "absolutePath", tailText: " (from getAbsolutePath())", typeText: "String!", attributes: "" }
|
||||
// EXIST: { lookupString: "isFile", itemText: "isFile", tailText: " (from isFile())", typeText: "Boolean", attributes: "" }
|
||||
// EXIST: { lookupString: "v", itemText: "v", attributes: "bold" }
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
import java.io.File
|
||||
|
||||
fun foo(file: File) {
|
||||
file.<caret>
|
||||
}
|
||||
|
||||
// EXIST: { lookupString: "absolutePath", itemText: "absolutePath", tailText: " (from getAbsolutePath())", typeText: "String!", attributes: "bold" }
|
||||
// EXIST: { lookupString: "isFile", itemText: "isFile", tailText: " (from isFile())", typeText: "Boolean", attributes: "bold" }
|
||||
Reference in New Issue
Block a user