KT-1373 Completion suggests constructors in type position

KT-1316 Type name completion inserts fully qualified name when works in incomplete code
This commit is contained in:
Nikolay Krasko
2012-03-05 18:36:12 +04:00
parent b6161cb41b
commit 77150f02d9
19 changed files with 218 additions and 32 deletions
@@ -0,0 +1,14 @@
public StringMethod() : String {
}
open class StringMy() {
}
public class Test : String<caret> {
}
// EXIST: StringMy
// EXIST: String
// ABSENT: StringMethod
@@ -0,0 +1,8 @@
class Test {
fun test() {
<caret>
}
}
// EXIST: Any, Nothing, Tuple0, Int, Number
// EXIST: Array, Math, Hashable, OutputStream
@@ -0,0 +1,7 @@
class Test : <caret> {
fun test() {
}
}
// EXIST: Any, Nothing, Tuple0, Int, Number
// EXIST: Array, Math, Hashable, OutputStream
@@ -0,0 +1,3 @@
package classCompletionImport
fun other() : SortedS<caret>
@@ -0,0 +1,5 @@
package classCompletionImport
import java.util.SortedSet
fun other() : SortedSet
@@ -1,3 +1,5 @@
package somefortest
fun test(a: Int) {
}
@@ -1,3 +1,5 @@
package somefortest
fun test(a: Int) {
}
@@ -1,3 +1,5 @@
package propertiesSetter
class TestClass {
val a : Int
ge<caret>
@@ -1,3 +1,5 @@
package propertiesSetter
class TestClass {
val a : Int
get()<caret>