Files
kotlin-fork/compiler/testData/diagnostics/tests/functionLiterals/kt6869.kt
T
2015-02-27 14:16:20 +03:00

11 lines
308 B
Kotlin

fun main(args : Array<String>) {
var list = listOf(1)
val a: Int? = 2
a?.let { list += it }
}
fun <T : Any, R> T.let(f: (T) -> R): R = f(this)
fun <T> Iterable<T>.plus(<!UNUSED_PARAMETER!>element<!>: T): List<T> = null!!
fun listOf<T>(vararg <!UNUSED_PARAMETER!>values<!>: T): List<T> = null!!