0fec50135f
This is the first implementation of a control flow graph facade for the extract function IDE refactoring. The exact contents of 'KtDataFlowExitPointSnapshot' will be refined later. ^KT-65762 Fixed
20 lines
315 B
Kotlin
Vendored
20 lines
315 B
Kotlin
Vendored
// WITH_STDLIB
|
|
|
|
fun test() {
|
|
consume(1)
|
|
<expr>try {
|
|
dangerous()
|
|
} catch (e: FooException) {
|
|
consume(e.message?.length ?: 0)
|
|
"error"
|
|
}</expr>
|
|
}
|
|
|
|
fun consume(n: Int) {}
|
|
|
|
@Throws(FooException::class)
|
|
fun dangerous(): String {
|
|
return "foo"
|
|
}
|
|
|
|
class FooException : Exception() |