Extract Function: Do not extract into lambda
This commit is contained in:
@@ -1,11 +1,13 @@
|
||||
// PARAM_TYPES: kotlin.Int
|
||||
// PARAM_TYPES: kotlin.Int
|
||||
class A {
|
||||
fun foo(a: Int, b: Int): Int {
|
||||
fun i(): Int {
|
||||
return a + b - 1
|
||||
}
|
||||
|
||||
return {
|
||||
i()
|
||||
i(a, b)
|
||||
}.invoke()
|
||||
}
|
||||
|
||||
fun i(a: Int, b: Int): Int {
|
||||
return a + b - 1
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user