Prohibit body for annotation class
#KT-1886 Fixed
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
annotation class Annotation2() <!ANNOTATION_CLASS_WITH_BODY!>{
|
||||
public val s: String = ""
|
||||
}<!>
|
||||
|
||||
annotation class Annotation3() <!ANNOTATION_CLASS_WITH_BODY!>{
|
||||
public fun foo() {}
|
||||
}<!>
|
||||
|
||||
annotation class Annotation4() <!ANNOTATION_CLASS_WITH_BODY!>{
|
||||
class Foo() {}
|
||||
}<!>
|
||||
|
||||
annotation class Annotation5() <!ANNOTATION_CLASS_WITH_BODY!>{
|
||||
class object {}
|
||||
}<!>
|
||||
|
||||
annotation class Annotation6() <!ANNOTATION_CLASS_WITH_BODY!>{
|
||||
{}
|
||||
}<!>
|
||||
|
||||
annotation class Annotation1() <!ANNOTATION_CLASS_WITH_BODY!>{}<!>
|
||||
|
||||
annotation class Annotation7(val name: String) <!ANNOTATION_CLASS_WITH_BODY!>{}<!>
|
||||
|
||||
annotation class Annotation8(var name: String = "") <!ANNOTATION_CLASS_WITH_BODY!>{}<!>
|
||||
|
||||
annotation class Annotation9(name: String)
|
||||
|
||||
annotation class Annotation10
|
||||
Reference in New Issue
Block a user