Filtering out type parameters that are not visible at the completion point
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
class X<T> {
|
||||
class Nested {
|
||||
val v: <caret>
|
||||
}
|
||||
}
|
||||
|
||||
// ABSENT: T
|
||||
idea/idea-completion/testData/basic/common/parameterNameAndType/ParametersInFileInaccessibleType2.kt
Vendored
+19
@@ -0,0 +1,19 @@
|
||||
package ppp
|
||||
|
||||
import java.io.*
|
||||
|
||||
class X {
|
||||
public class PublicNested
|
||||
private class PrivateNested
|
||||
|
||||
fun f1(nested: PublicNested) { }
|
||||
fun f2(nested: PrivateNested) { }
|
||||
fun f3(nestedList: List<PublicNested>) { }
|
||||
fun f4(nestedList: List<PrivateNested>) { }
|
||||
}
|
||||
|
||||
class C(val neste<caret>)
|
||||
|
||||
// EXIST: { lookupString: "nested", itemText: "nested: X.PublicNested", tailText: " (ppp)" }
|
||||
// EXIST: { lookupString: "nestedList", itemText: "nestedList: List<X.PublicNested>", tailText: " (kotlin)" }
|
||||
// NOTHING_ELSE
|
||||
Vendored
+10
@@ -0,0 +1,10 @@
|
||||
package ppp
|
||||
|
||||
class X<T1> {
|
||||
fun <T2> f(xxxValue1: T1, xxxValue2: T2, xxxValue3: (T2) -> Unit){}
|
||||
|
||||
fun foo(xxx<caret>)
|
||||
}
|
||||
|
||||
// EXIST: { lookupString: "xxxValue1", itemText: "xxxValue1: T1", tailText: null }
|
||||
// NOTHING_ELSE
|
||||
Vendored
+11
@@ -0,0 +1,11 @@
|
||||
package ppp
|
||||
|
||||
class X<T1> {
|
||||
fun <T2> f5(xxxValue1: T1, xxxValue2: T2){}
|
||||
|
||||
class Nested {
|
||||
fun foo(xxx<caret>)
|
||||
}
|
||||
}
|
||||
|
||||
// NOTHING_ELSE
|
||||
Vendored
+12
@@ -0,0 +1,12 @@
|
||||
package ppp
|
||||
|
||||
class X<T1> {
|
||||
fun <T2> f5(xxxValue1: T1, xxxValue2: T2){}
|
||||
|
||||
inner class Nested {
|
||||
fun foo(xxx<caret>)
|
||||
}
|
||||
}
|
||||
|
||||
// EXIST: { lookupString: "xxxValue1", itemText: "xxxValue1: T1", tailText: null }
|
||||
// NOTHING_ELSE
|
||||
Reference in New Issue
Block a user