Files
kotlin-fork/idea/testData/slicer/outflow/nonInlineLetResult.kt
T
2020-04-18 01:24:57 +03:00

19 lines
263 B
Kotlin
Vendored

// FLOW: OUT
fun foo(<caret>p: String) {
val v1 = p.let { value -> bar(value) }
val v2 = p.let { it }
val v3 = p.let {
val it = "a"
it
}
}
fun bar(s: String) = s
fun <T, R> T.let(block: (T) -> R): R {
return block(this)
}