Files
kotlin-fork/compiler/testData/diagnostics/tests/functionLiterals/unusedLiteralInsideUnitLiteral.kt
T

11 lines
168 B
Kotlin
Vendored

// !DIAGNOSTICS: +UNUSED_LAMBDA_EXPRESSION
fun main() {
"".run {
<!UNUSED_LAMBDA_EXPRESSION!>{}<!>
}
}
fun <T> T.run(f: (T) -> Unit): Unit = f(this)