Files
kotlin-fork/idea/testData/quickfix/addInline/local.kt
T
Mikhail Glukhikh d08b18f5f8 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
2017-07-07 18:15:06 +03:00

9 lines
212 B
Kotlin
Vendored

// "Add 'inline' to function 'foo'" "false"
// ERROR: Modifier 'crossinline' is allowed only for function parameters of an inline function
fun bar() {
fun foo(<caret>crossinline body: () -> Unit) {
}
}