Files
kotlin-fork/compiler/testData/ir/irText/expressions/tryCatchWithImplicitCast.kt.txt
T
2020-11-26 00:14:34 +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
""
}
}