mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
11 lines
177 B
Kotlin
Vendored
11 lines
177 B
Kotlin
Vendored
// !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)
|
|
}
|
|
}
|