Files
2016-04-18 15:26:42 +03:00

13 lines
232 B
Kotlin

// 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()
}
}
}