ConvertToForEachLoopIntention - renamed

This commit is contained in:
Valentin Kipyatkov
2015-04-16 13:59:27 +03:00
parent a155b0c860
commit a8d629f609
25 changed files with 73 additions and 73 deletions
@@ -0,0 +1,11 @@
// IS_APPLICABLE: false
// WITH_RUNTIME
class Foo {
fun forEach(predicate: (Int) -> Int): Int = predicate(0)
}
fun main() {
val x = Foo()
<caret>x.forEach({ it * 2 })
}