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

9 lines
143 B
Kotlin
Vendored

fun main(args: Array<String>) {
"".run {
<!UNUSED_LAMBDA_EXPRESSION!>{}<!>
}
}
fun <T> T.run(f: (T) -> Unit): Unit = f(this)