Files
kotlin-fork/idea/testData/intentions/convertForEachToForLoop/userDefined.kt
T
2015-04-16 22:00:54 +03:00

11 lines
182 B
Kotlin
Vendored

// 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 })
}