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

11 lines
164 B
Kotlin
Vendored

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