Fixed KT-7755 Convert to expression body kills comment

#KT-7755
This commit is contained in:
Valentin Kipyatkov
2015-05-23 19:26:01 +03:00
parent b39e9ebdb2
commit 4a2f2b62ec
10 changed files with 61 additions and 4 deletions
@@ -0,0 +1,3 @@
fun getText(): String {
<caret>return "xxx" //TODO
}
@@ -0,0 +1 @@
fun getText()<selection>: String</selection> = "xxx" //TODO
@@ -0,0 +1,4 @@
fun getText(): String {
// let's return xxx
<caret>return "xxx" //TODO
}
@@ -0,0 +1,2 @@
fun getText()<selection>: String</selection> = // let's return xxx
"xxx" //TODO
@@ -0,0 +1,3 @@
fun getText(): String { // let's return xxx
<caret>return "xxx"
}
@@ -0,0 +1,2 @@
fun getText()<selection>: String</selection> = // let's return xxx
"xxx"
@@ -0,0 +1,4 @@
fun getText(): String {
/* let's return xxx */
<caret>return "xxx" /* TODO */
}
@@ -0,0 +1,2 @@
fun getText(): String = /* let's return xxx */
"xxx" /* TODO */