Disable tail call optimization, if the call is inside try block

#KT-21165: Fixed
This commit is contained in:
Ilmir Usmanov
2018-01-09 17:13:19 +03:00
parent 3cfe43f83a
commit 5dbab2f907
9 changed files with 102 additions and 0 deletions
@@ -0,0 +1,10 @@
suspend fun catchException(): String {
try {
return suspendWithException()
}
catch(e: Exception) {
return e.message!!
}
}
suspend fun suspendWithException(): String = TODO()