No "{...}" in presentation for functions in completion of imports and callable references
This commit is contained in:
+3
@@ -12,6 +12,8 @@ class C {
|
||||
|
||||
val memberVal = 1
|
||||
|
||||
fun funWithFunctionParameter(p: () -> Unit) {}
|
||||
|
||||
class NestedClass
|
||||
inner class InnerClass
|
||||
|
||||
@@ -48,3 +50,4 @@ abstract class AbstractClass
|
||||
// ABSENT: AbstractClass
|
||||
// ABSENT: class
|
||||
// ABSENT: class.java
|
||||
// EXIST: { itemText: "funWithFunctionParameter", tailText: "(p: () -> Unit)", attributes: "bold" }
|
||||
|
||||
+3
-1
@@ -3,5 +3,7 @@ package second
|
||||
fun String.extensionFun(){}
|
||||
val Int.extensionVal: Int get() = 1
|
||||
|
||||
fun topLevelFun(p: (String, Int) -> Unit){}
|
||||
fun topLevelFun1(p: (String, Int) -> Unit){}
|
||||
fun topLevelFun2(p: () -> Unit){}
|
||||
val topLevelVal: Int = 1
|
||||
|
||||
|
||||
@@ -4,5 +4,7 @@ import second.<caret>
|
||||
|
||||
// EXIST: { itemText: "extensionFun", tailText: "() for String in second", attributes: "" }
|
||||
// EXIST: { itemText: "extensionVal", tailText: " for Int in second", attributes: "" }
|
||||
// EXIST: { itemText: "topLevelFun", tailText: "(p: (String, Int) -> Unit) (second)", attributes: "" }
|
||||
// EXIST: { itemText: "topLevelFun1", tailText: "(p: (String, Int) -> Unit) (second)", attributes: "" }
|
||||
// EXIST: { itemText: "topLevelFun2", tailText: "(p: () -> Unit) (second)", attributes: "" }
|
||||
// EXIST: { itemText: "topLevelVal", tailText: " (second)", attributes: "" }
|
||||
// NOTHING_ELSE
|
||||
Reference in New Issue
Block a user