https://kotlinlang.org logo
a

arekolek

11/19/2017, 2:13 PM
In Kotlin we can call it like this:
Copy code
fun testSam(test: SamJava, x: AccidentalSamInterface) {
    test.many("", x, x, x, SamInterface {  })
}
The variant with all lambdas doesn't make much sense here, we could use
{x.someString}
for middle parameters, but that would generate intermediate objects for no reason.