Files
kotlin-fork/compiler/testData/ir/irText/expressions/tryCatchWithImplicitCast.fir.kt.txt
T
2020-11-26 00:15:13 +03:00

9 lines
143 B
Plaintext
Vendored

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