A::class and A::class.java supported in smart completion too

This commit is contained in:
Valentin Kipyatkov
2015-10-01 14:04:48 +03:00
parent ec5d1d3a52
commit c0bfca4f89
17 changed files with 265 additions and 161 deletions
+3 -2
View File
@@ -7,10 +7,11 @@ fun f(e1: E, e2: E?, x: Any) {
if (e1 == <caret>
}
// WITH_ORDER
// EXIST: { itemText:"e2" }
// EXIST: { lookupString:"A", itemText:"E.A", typeText:"E" }
// EXIST: { lookupString:"B", itemText:"E.B", typeText:"E" }
// EXIST: { itemText:"e2" }
// EXIST: null
// ABSENT: { itemText:"!! e2" }
// ABSENT: e1
// ABSENT: x
// ABSENT: null
@@ -0,0 +1,10 @@
import kotlin.reflect.KClass
fun<T : Any> foo(p: KClass<T>){}
fun bar() {
foo(String::<caret>)
}
// EXIST: { lookupString: "class", itemText: "class", attributes: "bold" }
// NOTHING_ELSE
@@ -0,0 +1,8 @@
fun<T : Any> foo(p: Class<T>){}
fun bar() {
foo(String::<caret>)
}
// EXIST_JAVA_ONLY: { lookupString: "class.java", itemText: "class", tailText: ".java", attributes: "bold" }
// NOTHING_ELSE