"annotation" is now parsed as an identifier. It is no longer a soft keyword.
Sometimes it's allowed to parse "annotation" unescaped even if other annotations must be escaped. A set of annotations and their options tests. A swarm of existing tests fixed (mostly kotlin.annotation.annotation() added to txt-files). STUB_VERSION increased. Some quick fixes slightly changed.
This commit is contained in:
@@ -1,15 +1,15 @@
|
||||
annotation class B
|
||||
|
||||
class A {
|
||||
<!ILLEGAL_ANNOTATION_KEYWORD!>annotation<!> companion object {}
|
||||
annotation companion object {}
|
||||
}
|
||||
|
||||
<!ILLEGAL_ANNOTATION_KEYWORD!>annotation<!> object O {}
|
||||
annotation object O {}
|
||||
|
||||
<!ILLEGAL_ANNOTATION_KEYWORD!>annotation<!> interface T {}
|
||||
annotation interface T {}
|
||||
|
||||
<!ILLEGAL_ANNOTATION_KEYWORD!>annotation<!> fun f() = 0
|
||||
annotation fun f() = 0
|
||||
|
||||
<!ILLEGAL_ANNOTATION_KEYWORD!>annotation<!> val x = 0
|
||||
annotation val x = 0
|
||||
|
||||
<!ILLEGAL_ANNOTATION_KEYWORD!>annotation<!> var y = 0
|
||||
annotation var y = 0
|
||||
Reference in New Issue
Block a user