Files
kotlin-fork/idea/testData/inspectionsLocal/redundantUnitExpression/lambda.kt
T

12 lines
144 B
Kotlin
Vendored

// PROBLEM: none
fun <T> run(f: () -> T) = f()
fun foo(s: String) = s
fun test() {
run {
foo("Hello")
<caret>Unit
}
}