199bff7e70
Adds inline to function if crossinline is used on parameter #KT-14046 Fixed
10 lines
250 B
Kotlin
Vendored
10 lines
250 B
Kotlin
Vendored
// "Add 'inline' to function 'foo'" "false"
|
|
// ACTION: Convert to expression body
|
|
// ERROR: Modifier 'crossinline' is allowed only for function parameters of an inline function
|
|
|
|
fun bar() {
|
|
fun foo(<caret>crossinline body: () -> Unit) {
|
|
|
|
}
|
|
}
|