e67543e08e
This reverts commit 040f4e90ce.
4 lines
151 B
Kotlin
Vendored
4 lines
151 B
Kotlin
Vendored
//KT-571 Type inference failed
|
|
fun <T, R> let(t : T, body : (T) -> R) = body(t)
|
|
private fun double(d : Int) : Int = let(d * 2) {it / 10 + it * 2 % 10}
|