Extract Function: Utilize pseudo-value usage for return type inference
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
// SIBLING:
|
||||
fun foo(a: Int): Int {
|
||||
var b: Int = 1
|
||||
|
||||
<selection>if (n == 10) throw Exception("")
|
||||
b++</selection>
|
||||
|
||||
return b
|
||||
}
|
||||
Reference in New Issue
Block a user