'annotation' keyword should be allowed only on classes
#KT-2785 Fixed
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
annotation class B
|
||||
|
||||
class A {
|
||||
<!ILLEGAL_ANNOTATION_KEYWORD!>annotation<!> class object {}
|
||||
}
|
||||
|
||||
<!ILLEGAL_ANNOTATION_KEYWORD!>annotation<!> object O {}
|
||||
|
||||
<!ILLEGAL_ANNOTATION_KEYWORD!>annotation<!> trait T {}
|
||||
|
||||
<!ILLEGAL_ANNOTATION_KEYWORD!>annotation<!> fun f() = 0
|
||||
|
||||
<!ILLEGAL_ANNOTATION_KEYWORD!>annotation<!> val x = 0
|
||||
|
||||
<!ILLEGAL_ANNOTATION_KEYWORD!>annotation<!> var y = 0
|
||||
Reference in New Issue
Block a user