Files
kotlin-fork/idea/testData/refactoring/extractFunction/controlFlow/throws/implicitThrow.kt
T

7 lines
203 B
Kotlin
Vendored

// WITH_RUNTIME
// PARAM_DESCRIPTOR: value-parameter a: kotlin.Int? defined in foo
// PARAM_TYPES: kotlin.Int?
fun foo(a: Int?): Int {
<selection>val n = a ?: error("")
return n + 1</selection>
}