KT-7756 Completion of "return null", "return true" and "return false"

#KT-7756 Fixed
This commit is contained in:
Valentin Kipyatkov
2015-05-16 19:03:52 +03:00
parent 009baa11fc
commit 603f7ef3c1
11 changed files with 105 additions and 10 deletions
@@ -0,0 +1,9 @@
fun foo(): Boolean {
ret<caret>
}
// INVOCATION_COUNT: 1
// EXIST: { lookupString: "return", itemText: "return", tailText: null, attributes: "bold" }
// EXIST: { lookupString: "return true", itemText: "return true", tailText: null, attributes: "bold" }
// EXIST: { lookupString: "return false", itemText: "return false", tailText: null, attributes: "bold" }
// NOTHING_ELSE: true
@@ -0,0 +1,8 @@
fun foo(): String {
ret<caret>
}
// INVOCATION_COUNT: 1
// ABSENT: "return null"
// ABSENT: "return true"
// ABSENT: "return false"
+8
View File
@@ -0,0 +1,8 @@
fun foo(): String? {
ret<caret>
}
// INVOCATION_COUNT: 1
// EXIST: { lookupString: "return", itemText: "return", tailText: null, attributes: "bold" }
// EXIST: { lookupString: "return null", itemText: "return null", tailText: null, attributes: "bold" }
// NOTHING_ELSE: true
@@ -0,0 +1,10 @@
fun foo(): Boolean? {
ret<caret>
}
// INVOCATION_COUNT: 1
// EXIST: { lookupString: "return", itemText: "return", tailText: null, attributes: "bold" }
// EXIST: { lookupString: "return null", itemText: "return null", tailText: null, attributes: "bold" }
// EXIST: { lookupString: "return true", itemText: "return true", tailText: null, attributes: "bold" }
// EXIST: { lookupString: "return false", itemText: "return false", tailText: null, attributes: "bold" }
// NOTHING_ELSE: true