Because it's a Java method. It's one of the limita...
# getting-started
r
Because it's a Java method. It's one of the limitations of interop.
👍 1
r
thanks 🙂 no way to get around this huh? unless i use the Kotlin implementation.
e
Maybe a overloaded version in Java could get round this
r
how would that look like?
e
void scan(BiFunction accumulator) { scan (0, accumulator) }
Haven't try yet though
r
oh ok! thanks 🙂
will have a look
n
do you know if it works if java code was compiled with
-parameters
?
g
I don’t think that Kotlin supports Java named arguments even with -parameters key. probably it’s intentionally, because param names are not considered in Java as backward incompatible change, so make such code less stable in terms of backward compatibilitty