Skip to content

Instantly share code, notes, and snippets.

@yatatsu
Last active November 15, 2016 02:21
Show Gist options
  • Save yatatsu/256af086310cbee607a2bcfccf125aa2 to your computer and use it in GitHub Desktop.
Save yatatsu/256af086310cbee607a2bcfccf125aa2 to your computer and use it in GitHub Desktop.
decompile kotlin top level function (kotlin 1.0.5)
package com.example.kitagawa.kotlintest;
import kotlin.Metadata;
import kotlin.jvm.JvmName;
@Metadata(
mv = {1, 1, 1},
bv = {1, 0, 0},
k = 2,
d1 = {"\u0000\b\n\u0000\n\u0002\u0010\u0002\n\u0000\u001a\u0006\u0010\u0000\u001a\u00020\u0001¨\u0006\u0002"},
d2 = {"helloWorld2", "", "production sources for module app"}
)
@JvmName(
name = "Bar"
)
public final class Bar {
public static final void helloWorld2() {
String var0 = "hello, world";
System.out.print(var0);
}
}
@file:JvmName("Bar")
package com.example.kitagawa.kotlintest
fun helloWorld2() {
print("hello, world")
}
package com.example.kitagawa.kotlintest;
import kotlin.Metadata;
@Metadata(
mv = {1, 1, 1},
bv = {1, 0, 0},
k = 2,
d1 = {"\u0000\b\n\u0000\n\u0002\u0010\u0002\n\u0000\u001a\u0006\u0010\u0000\u001a\u00020\u0001¨\u0006\u0002"},
d2 = {"helloWorld", "", "production sources for module app"}
)
public final class FooKt {
public static final void helloWorld() {
String var0 = "hello, world";
System.out.print(var0);
}
}
package com.example.kitagawa.kotlintest
fun helloWorld() {
print("hello, world")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment