Extraction Engine: Generate function/property accessor with expression body (whenever applicable)

#KT-6405 Fixed
This commit is contained in:
Alexey Sedunov
2015-03-12 16:15:35 +03:00
parent 9d8cfd04d9
commit 9cb42944d1
92 changed files with 142 additions and 295 deletions
@@ -9,6 +9,4 @@ fun foo(a: Int, b: Int, c: Int): Int {
return i(a, b, c)
}
private fun i(a: Int, b: Int, c: Int): Int {
return (a + b * a - c) + b * c
}
private fun i(a: Int, b: Int, c: Int) = (a + b * a - c) + b * c
@@ -13,9 +13,7 @@ public class A() {
}
}
private fun i(a: A, t: Int, u: Int, x: Int): Int {
return a.bar(t - x, u + x)
}
private fun i(a: A, t: Int, u: Int, x: Int) = a.bar(t - x, u + x)
fun foo(a: A, x: Int): Int {
val t = 10