jet.Annotation

Create a supertype for all Kotlin annotations, jet.Annotation.
Map java.lang.annotation.Annotation to jet.Annotation and vice versa.
Add extension function "annotationType()" to every annotation, similar to java.lang.annotation.Annotation.annotationType()
 #KT-1620 Fixed
This commit is contained in:
Alexander Udalov
2012-08-24 22:07:55 +04:00
parent 9be4f63735
commit d99ffbd120
12 changed files with 84 additions and 15 deletions
@@ -1,5 +1,5 @@
namespace test
test.AnnotatedAnnotation() public final annotation class test.AnnotatedAnnotation : jet.Any {
test.AnnotatedAnnotation() public final annotation class test.AnnotatedAnnotation : jet.Annotation {
public final /*constructor*/ fun <init>(): test.AnnotatedAnnotation
}
@@ -1,5 +1,5 @@
namespace test
public final annotation class test.SimpleAnnotation : jet.Any {
public final annotation class test.SimpleAnnotation : jet.Annotation {
public final /*constructor*/ fun <init>(): test.SimpleAnnotation
}