Files
kotlin-fork/compiler/testData/diagnostics/tests/declarationChecks/multiDeclarations/kt2829.kt
T
2012-09-26 15:17:26 +04:00

16 lines
239 B
Kotlin

package test
fun a(s: String) { // <- ERROR
val (x, y) = Pair("", s)
println(x + y)
}
fun b(s: String) {
val x = Pair("", s)
println(x)
}
//from library
data class Pair<A, B>(val a: A, val b: B)
fun println(a: Any?) = a