Extract Function: Support implicit abnormal exits via Nothing-typed expressions
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
// 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>
|
||||
}
|
||||
Reference in New Issue
Block a user