Introduce "use expression body" inspection #KT-16063 Fixed
Converted from the relevant intention Reported cases: one-liners, whens Also, more exact caret detection in local inspection tests
This commit is contained in:
committed by
Mikhail Glukhikh
parent
fe9d3f16d3
commit
d08b18f5f8
+3
@@ -0,0 +1,3 @@
|
||||
fun getText(): String {
|
||||
<caret>return "xxx" //TODO
|
||||
}
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
fun getText(): String = "xxx" //TODO
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
fun getText(): String {
|
||||
// let's return xxx
|
||||
<caret>return "xxx" //TODO
|
||||
}
|
||||
Vendored
+2
@@ -0,0 +1,2 @@
|
||||
fun getText(): String = // let's return xxx
|
||||
"xxx" //TODO
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
fun getText(): String { // let's return xxx
|
||||
<caret>return "xxx"
|
||||
}
|
||||
Vendored
+2
@@ -0,0 +1,2 @@
|
||||
fun getText(): String = // let's return xxx
|
||||
"xxx"
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
fun getText(): String {
|
||||
/* let's return xxx */
|
||||
<caret>return "xxx" /* TODO */
|
||||
}
|
||||
Vendored
+2
@@ -0,0 +1,2 @@
|
||||
fun getText(): String = /* let's return xxx */
|
||||
"xxx" /* TODO */
|
||||
Reference in New Issue
Block a user