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:
@@ -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>
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user