KT-5153 Smart completion should include objects from type

#KT-5153 Fixed
This commit is contained in:
Valentin Kipyatkov
2014-07-24 11:30:23 +02:00
parent be0e78b11a
commit 2b67716e95
6 changed files with 59 additions and 2 deletions
@@ -0,0 +1,13 @@
package p
class Outer {
trait T {
object Null : T { }
}
}
fun foo(): Outer.T {
return <caret>
}
// ELEMENT: "T.Null"
@@ -0,0 +1,13 @@
package p
class Outer {
trait T {
object Null : T { }
}
}
fun foo(): Outer.T {
return Outer.T.Null<caret>
}
// ELEMENT: "T.Null"
@@ -0,0 +1,14 @@
package p
trait T {
object Null : T { }
object Other {}
}
fun foo(): T {
return <caret>
}
// EXIST: { lookupString:"T.Null", itemText:"T.Null", tailText:" (p)", typeText:"T" }
// ABSENT: T.Other