Files
kotlin-fork/compiler/testData/diagnostics/tests/dataFlowInfoTraversal/MultiDeclaration.fir.kt
T

10 lines
152 B
Kotlin
Vendored

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