Files
kotlin-fork/compiler/testData/diagnostics/tests/functionLiterals/kt6869.kt
T
Stanislav Erokhin 298a075381 Minor. removed functions which declared in Standard.kt from diagnostic testdata.
Removed declaration for functions: TODO, run, with, apply, let.
2016-01-25 19:13:31 +03:00

10 lines
269 B
Kotlin
Vendored

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