<@U1AFFRV1Q|kingsley> uploaded a file: <Method ref...
# eap
k
@User uploaded a file: Method references and commented: Playing around with 1.1 EAP. I noticed method references doesn't quit work the same as its Java 8 counterpart, even after setting Kotlin's JVM target to 1.8
bar2
is perfectly fine, injecting the
foobar(1)
directly into the call site. However,
bar
still creates an annonymous instance of
Function1
. Inlining doesn't seem to work here at all Java 8's bytecode on the other hand uses
INVOKEDYNAMIC
for both lambda and method references.