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

11 lines
197 B
Kotlin
Vendored

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