Created
August 31, 2017 16:06
-
-
Save praveenKajla/6167a975afd6526012687265cd56eb1d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import kotlin.Metadata; | |
import kotlin.jvm.functions.Function0; | |
import kotlin.jvm.internal.Intrinsics; | |
import org.jetbrains.annotations.NotNull; | |
@Metadata( | |
mv = {1, 1, 7}, | |
bv = {1, 0, 2}, | |
k = 2, | |
d1 = {"\u0000\u001a\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0010\u0011\n\u0002\u0010\u000e\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\u001a\u0019\u0010\u0000\u001a\u00020\u00012\f\u0010\u0002\u001a\b\u0012\u0004\u0012\u00020\u00040\u0003¢\u0006\u0002\u0010\u0005\u001a\u0017\u0010\u0006\u001a\u00020\u00012\f\u0010\u0006\u001a\b\u0012\u0004\u0012\u00020\u00010\u0007H\u0086\b¨\u0006\b"}, | |
d2 = {"main", "", "args", "", "", "([Ljava/lang/String;)V", "op", "Lkotlin/Function0;", "production sources for module IdeaProjects-random_main"} | |
) | |
public final class InlineFunctionKt { | |
public static final void op(@NotNull Function0 op) { | |
Intrinsics.checkParameterIsNotNull(op, "op"); | |
String var2 = "This is before lambda"; | |
System.out.println(var2); | |
op.invoke(); | |
var2 = "this is after lambda"; | |
System.out.println(var2); | |
} | |
public static final void main(@NotNull String[] args) { | |
Intrinsics.checkParameterIsNotNull(args, "args"); | |
String var1 = "This is before lambda"; | |
System.out.println(var1); | |
String var2 = "this is the actual function"; | |
System.out.println(var2); | |
var1 = "this is after lambda"; | |
System.out.println(var1); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment