ConvertToForEachLoopIntention - renamed
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
// IS_APPLICABLE: false
|
||||
// WITH_RUNTIME
|
||||
class Foo {
|
||||
fun forEach(predicate: (Int) -> Int, bar: Int): Int = predicate(bar)
|
||||
}
|
||||
|
||||
fun main() {
|
||||
val x = Foo()
|
||||
|
||||
<caret>x.forEach({ it * 2 }, 2)
|
||||
}
|
||||
Reference in New Issue
Block a user