Introduce Parameter: Implement "Introduce lambda parameter"
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
// WITH_DEFAULT_VALUE: false
|
||||
fun foo(a: Int, s: String, i: (Int) -> Int): Int {
|
||||
val t = i(a) * 2
|
||||
return i(a) - t
|
||||
}
|
||||
|
||||
fun test() {
|
||||
foo(1, "2") { a -> a + 1 }
|
||||
}
|
||||
Reference in New Issue
Block a user