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

10 lines
171 B
Kotlin
Vendored

// FIR_IDENTICAL
// !CHECK_TYPE
data class A(var x: Int, var y: String)
fun foo(a: A) {
checkSubtype<Int>(a.component1())
checkSubtype<String>(a.component2())
}