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:
Mikhail Glukhikh
2017-06-29 16:50:45 +03:00
committed by Mikhail Glukhikh
parent fe9d3f16d3
commit d08b18f5f8
164 changed files with 703 additions and 548 deletions
-1
View File
@@ -1,5 +1,4 @@
// "Create label foo@" "false"
// ACTION: Convert to expression body
// ERROR: The label '@foo' does not denote a loop
// ERROR: Unresolved reference: @foo
-1
View File
@@ -1,5 +1,4 @@
// "Create label foo@" "false"
// ACTION: Convert to expression body
// ERROR: The label '@foo' does not denote a loop
// ERROR: Unresolved reference: @foo
-1
View File
@@ -1,5 +1,4 @@
// "Create label foo@" "false"
// ACTION: Convert to expression body
// ERROR: Unresolved reference: @foo
fun test(): Int {