private fun foo(one: (String) -> Unit = {}, two: (String) -> Unit = {}) {
one("one")
two("two")
}
fun main(args: Array<String>) {
foo({ print(it) })
foo { print(it) }
}
I think should be inspection about it.
private fun foo(one: (String) -> Unit = {}, two: (String) -> Unit = {}) {
one("one")
two("two")
}
fun main(args: Array<String>) {
foo({ print(it) })
foo { print(it) }
}
I think should be inspection about it.
But I can’t realize in in which case…
If there needs to be an inspection, I think the case is:
The method:
The function call:
You should file an issue with this example to http://kotl.in/issue anyway