Files
kotlin-fork/compiler/testData/diagnostics/tests/dataFlowInfoTraversal/MultiDeclaration.kt
T
2015-04-29 16:33:24 +02:00

10 lines
170 B
Kotlin
Vendored

// !CHECK_TYPE
fun Int.component1() = "a"
fun foo(a: Number) {
val (x) = a as Int
checkSubtype<Int>(<!DEBUG_INFO_SMARTCAST!>a<!>)
checkSubtype<String>(x)
}