Created
November 16, 2015 08:02
-
-
Save abreslav/5e299108b7e38defa0c1 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
annotation class A | |
fun main(args: Array<String>) { | |
val f = @A {} | |
f.javaClass.methods.filter { it.name == "invoke" && it.parameterTypes.isEmpty() }.forEach { | |
it.annotations.forEach(::println) | |
println(it) | |
println() | |
} | |
} |
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
public java.lang.Object AnnKt$main$f$1.invoke() | |
@A() | |
public final void AnnKt$main$f$1.invoke() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment