dhkim
09/28/2016, 3:33 PM$ javap -c -p TestKt
Compiled from "Test.kt"
public final class TestKt {
public static final int test1(kotlin.jvm.functions.Function1<? super Test, java.lang.Integer>);
Code:
0: aload_0
1: ldc #9 // String accessor
3: invokestatic #15 // Method kotlin/jvm/internal/Intrinsics.checkParameterIsNotNull:(Ljava/lang/Object;Ljava/lang/String;)V
6: aload_0
7: new #17 // class Test
10: dup
11: invokespecial #21 // Method Test."<init>":()V
14: invokeinterface #27, 2 // InterfaceMethod kotlin/jvm/functions/Function1.invoke:(Ljava/lang/Object;)Ljava/lang/Object;
19: checkcast #29 // class java/lang/Number
22: invokevirtual #33 // Method java/lang/Number.intValue:()I
25: istore_1
26: iload_1
27: bipush 10
29: iadd
30: ireturn
public static final int test2();
Code:
0: new #17 // class Test
3: dup
4: invokespecial #21 // Method Test."<init>":()V
7: astore_1
8: nop
9: aload_1
10: checkcast #17 // class Test
13: astore_2
14: aload_2
15: invokevirtual #40 // Method Test.getInt:()I
18: istore_0
19: iload_0
20: bipush 10
22: iadd
23: ireturn
}