Title
a

alexp11223

01/25/2017, 8:15 PM
If I have a function like
fun f(f1: () -> Unit = ::emptyOp, f2: () -> Unit = ::emptyOp)
and I call it via
f { }
does it set the first or the last parameter? I thought the first, but looks like it's the opposite?
i

ilya.gorbunov

01/25/2017, 9:47 PM
alexp11223: lambda passed outside of parentheses always goes to the last parameter