Extract Function: Utilize pseudo-value usage for return type inference

This commit is contained in:
Alexey Sedunov
2014-05-30 13:06:06 +04:00
parent 164338d6f5
commit 1a7e6eab61
35 changed files with 494 additions and 145 deletions
@@ -1,9 +0,0 @@
// SIBLING:
fun foo(a: Int): Int {
var b: Int = 1
<selection>if (n == 10) throw Exception("")
b++</selection>
return b
}
@@ -1 +0,0 @@
Selected code fragment has output values as well as alternative exit points