Files
kotlin-fork/idea/testData/inspectionsLocal/useExpressionBody/leftBrace.kt
T
Mikhail Glukhikh e10fa218f5 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
2017-12-28 20:31:41 +03:00

7 lines
139 B
Kotlin
Vendored

// HIGHLIGHT: INFORMATION
// PROBLEM: Use expression body instead of return
fun simple(): Int {<caret>
return 1 *
(2 + 3)
}