Smart completion: "null" when nullable value expected

This commit is contained in:
Valentin Kipyatkov
2014-04-29 19:50:37 +04:00
parent 32405e57e6
commit 3c75e9ec28
7 changed files with 25 additions and 0 deletions
@@ -3,3 +3,5 @@ class Foo
fun foo(p : Any){
var a : Foo? = <caret>
}
// ELEMENT: Foo
@@ -3,3 +3,5 @@ class Foo
fun foo(p : Any){
var a : Foo? = Foo()<caret>
}
// ELEMENT: Foo
@@ -6,3 +6,5 @@ fun foo(c: C?, i: Int){}
fun foo() {
foo(<caret>
}
// ELEMENT: C
@@ -6,3 +6,5 @@ fun foo(c: C?, i: Int){}
fun foo() {
foo(C()<caret>
}
// ELEMENT: C
+7
View File
@@ -0,0 +1,7 @@
fun foo(p: String?) {}
fun bar() {
foo(<caret>)
}
// EXIST: null