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