FIR2IR: Fix line number differences in try block
This commit is contained in:
committed by
Mikhail Glukhikh
parent
5aa8e2d0d1
commit
e5bff514b6
+7
-2
@@ -2,7 +2,12 @@ fun testImplicitCast(a: Any) {
|
||||
when {
|
||||
a !is String -> return Unit
|
||||
}
|
||||
val t: String = try a /*as String */
|
||||
catch (e: Throwable)""
|
||||
val t: String = try { // BLOCK
|
||||
a /*as String */
|
||||
}
|
||||
catch (e: Throwable){ // BLOCK
|
||||
""
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user