Implement Unwrap/Remove for try expressions
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
// OPTION: 1
|
||||
fun foo(n: Int): Int {
|
||||
return try {
|
||||
n / 0
|
||||
}
|
||||
<caret>catch (e: ArithmeticException) {
|
||||
-1
|
||||
}
|
||||
catch (e: Exception) {
|
||||
-2
|
||||
}
|
||||
finally {
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user