Files
kotlin-fork/compiler/testData/diagnostics/tests/dataClasses/multiDeclarationFor.kt
T

12 lines
194 B
Kotlin
Vendored

// FIR_IDENTICAL
// !CHECK_TYPE
data class A(val x: Int, val y: String)
fun foo(arr: Array<A>) {
for ((b, c) in arr) {
checkSubtype<Int>(b)
checkSubtype<String>(c)
}
}