Files
kotlin/compiler/testData/diagnostics/tests/dataClasses/twoVarParams.kt
2015-04-29 16:33:24 +02:00

9 lines
154 B
Kotlin
Vendored

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