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

11 lines
137 B
Kotlin
Vendored

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