https://kotlinlang.org logo
Title
r

Ruckus

02/28/2018, 4:34 AM
Because it's a Java method. It's one of the limitations of interop.
👍 1
r

rakeeb

02/28/2018, 5:16 AM
thanks 🙂 no way to get around this huh? unless i use the Kotlin implementation.
e

edwardwongtl

02/28/2018, 5:20 AM
Maybe a overloaded version in Java could get round this
r

rakeeb

02/28/2018, 5:25 AM
how would that look like?
e

edwardwongtl

02/28/2018, 5:26 AM
void scan(BiFunction accumulator) { scan (0, accumulator) }
Haven't try yet though
r

rakeeb

02/28/2018, 5:27 AM
oh ok! thanks 🙂
will have a look
n

nfrankel

02/28/2018, 8:56 AM
do you know if it works if java code was compiled with
-parameters
?
g

gildor

09/06/2018, 5:43 AM
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