Files
kotlin-fork/idea/testData/intentions/replaceExplicitFunctionLiteralParamWithIt/notApplicable_wrongPosition.kt
T
2015-05-02 14:03:24 +03:00

5 lines
118 B
Kotlin
Vendored

// IS_APPLICABLE: false
fun applyTwice<A>(f: (A) -> A, x: A) = f(f(x))
val x = applyTwice({ p -> p + <caret>1 }, 40)