Extract Function: Limit the set of allowed containers for the default action
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
class A {
|
||||
fun foo(a: Int, b: Int): Int {
|
||||
fun i(): Int {
|
||||
return a + b - 1
|
||||
}
|
||||
|
||||
return {
|
||||
i()
|
||||
}.invoke()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user