KT-1238 Completion of 'break' keyword: why does it add space char at the end?

KT-1237 Auto-completion of "return" keyword should not insert space after it when in a method returning Unit

 #KT-1237 fixed
 #KT-1238 fixed
This commit is contained in:
Nikolay Krasko
2012-04-09 11:43:46 +04:00
parent bd501f3676
commit 7de5f68629
13 changed files with 113 additions and 7 deletions
@@ -0,0 +1,3 @@
fun t() {
brea<caret>
}
@@ -0,0 +1,3 @@
fun t() {
break<caret>
}
@@ -0,0 +1,3 @@
fun test(a: Int) {
retur<caret>
}
@@ -0,0 +1,3 @@
fun test(a: Int) {
return<caret>
}
@@ -0,0 +1,6 @@
class Test {
val test : String
get() {
retur<caret>
}
}
@@ -0,0 +1,6 @@
class Test {
val test : String
get() {
return <caret>
}
}
@@ -0,0 +1,5 @@
class Test {
fun someMethod() : Int {
retur<caret>
}
}
@@ -0,0 +1,5 @@
class Test {
fun someMethod() : Int {
return <caret>
}
}
@@ -0,0 +1,5 @@
object OtherTest {
fun test() : Unit {
retur<caret>
}
}
@@ -0,0 +1,5 @@
object OtherTest {
fun test() : Unit {
return<caret>
}
}