Annotations inheritance. Either prohibit or implement correctly #KT-3225 Fixed

This commit is contained in:
Natalia Ukhorskaya
2013-12-18 19:31:28 +04:00
parent cce6b952bd
commit 5d2cb2f97b
5 changed files with 19 additions and 0 deletions
@@ -0,0 +1,8 @@
val a = object: T {}
open class C
trait T
annotation class Ann: <!SUPERTYPES_FOR_ANNOTATION_CLASS!>C()<!>
annotation class Ann2: <!SUPERTYPES_FOR_ANNOTATION_CLASS!>T<!>
annotation class Ann3: <!SUPERTYPES_FOR_ANNOTATION_CLASS!>T by a<!>
annotation class Ann4: <!SUPERTYPES_FOR_ANNOTATION_CLASS!>C(), T<!>