Files
kotlin-fork/compiler/testData/ir/irText/expressions/tryCatchWithImplicitCast.fir.kt.txt
T
2021-11-01 23:59:59 +03:00

14 lines
182 B
Plaintext
Vendored

fun testImplicitCast(a: Any) {
when {
a !is String -> return Unit
}
val t: String = try { // BLOCK
a /*as String */
}
catch (e: Throwable){ // BLOCK
""
}
}