Extend range of "use expression body" to left brace..end of return
Range is extended iff we are in DO_NOT_SHOW case, otherwise just return is highlighted to avoid ugly highlighting So #KT-19771 Fixed
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
// HIGHLIGHT: INFORMATION
|
||||
// PROBLEM: Use expression body instead of return
|
||||
|
||||
fun simple(): Int {<caret>
|
||||
return 1 *
|
||||
(2 + 3)
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
// HIGHLIGHT: INFORMATION
|
||||
// PROBLEM: Use expression body instead of return
|
||||
|
||||
fun simple(): Int = 1 *
|
||||
(2 + 3)
|
||||
Reference in New Issue
Block a user