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
@@ -8,6 +8,4 @@ class A(a: Int, b: Int): T
class B(a: Int, b: Int): T by A(i(a, b), a - b)
private fun i(a: Int, b: Int): Int {
return a + b
}
private fun i(a: Int, b: Int) = a + b
@@ -6,6 +6,4 @@ class A(a: Int, b: Int): T
class B(t: T): T by t(t)
private fun t(t: T): T {
return t
}
private fun t(t: T) = t
@@ -6,6 +6,4 @@ open class A(a: Int, b: Int)
class B(a: Int, b: Int): A(i(a, b), a - b)
private fun i(a: Int, b: Int): Int {
return a + b
}
private fun i(a: Int, b: Int) = a + b