Files
kotlin-fork/idea/testData/intentions/replaceExplicitFunctionLiteralParamWithIt/notApplicable_nestedLiterals.kt
T

13 lines
232 B
Kotlin
Vendored

// IS_APPLICABLE: false
inline fun <T, R> T.let(block: (T) -> R): R = block(this)
fun foo(arg: Any?): Int? {
return arg?.let {
<caret>x -> x.toString().let {
x.hashCode() + it.hashCode()
}
}
}