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

10 lines
147 B
Kotlin
Vendored

// !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)
}