FIR2IR: Fix line number differences in try block

This commit is contained in:
Mads Ager
2021-10-28 10:28:54 +03:00
committed by Mikhail Glukhikh
parent 5aa8e2d0d1
commit e5bff514b6
11 changed files with 69 additions and 31 deletions
@@ -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
""
}
}