Smart completion: expected type instantiation made higher priority than static members
This commit is contained in:
@@ -11,5 +11,5 @@ fun bar() {
|
||||
}
|
||||
|
||||
// ORDER: it
|
||||
// ORDER: create
|
||||
// ORDER: Name
|
||||
// ORDER: create
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
class C {
|
||||
companion object {
|
||||
val INSTANCE = C()
|
||||
fun create() = C()
|
||||
}
|
||||
}
|
||||
|
||||
fun foo(p: C) {
|
||||
foo(<caret>)
|
||||
}
|
||||
|
||||
|
||||
// ORDER: p
|
||||
// ORDER: C
|
||||
// ORDER: INSTANCE
|
||||
// ORDER: create
|
||||
Reference in New Issue
Block a user