Don't exclude callable references with type parameters from completion
This commit is contained in:
+1
-2
@@ -9,7 +9,6 @@ var globalVar = 1
|
||||
|
||||
fun funWithFunctionParameter(p: () -> Unit) {}
|
||||
|
||||
// callable references to generic functions are not supported currently
|
||||
fun <T> genericFun(t: T): T = t
|
||||
|
||||
class C {
|
||||
@@ -54,7 +53,7 @@ abstract class AbstractClass
|
||||
// ABSENT: class
|
||||
// ABSENT: class.java
|
||||
// EXIST: { itemText: "funWithFunctionParameter", tailText: "(p: () -> Unit) (<root>)", attributes: "" }
|
||||
// ABSENT: genericFun
|
||||
// EXIST: { itemText: "genericFun", tailText: "(t: T) (<root>)", attributes: "" }
|
||||
|
||||
// ABSENT: "kotlin"
|
||||
// ABSENT: "java"
|
||||
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
class Wrapper<T>(val value: T)
|
||||
|
||||
fun test() {
|
||||
listOf<String>().map(::Wrap<caret>)
|
||||
}
|
||||
|
||||
// EXIST: { lookupString: "Wrapper", itemText: "Wrapper", tailText: "(value: T)", attributes: "" }
|
||||
// NOTHING_ELSE
|
||||
Reference in New Issue
Block a user