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