[FIR] Support several annotation class diagnostics
This commit is contained in:
committed by
Mikhail Glukhikh
parent
1e8dff6a7c
commit
aa706d322d
-31
@@ -1,31 +0,0 @@
|
||||
// !LANGUAGE: +NestedClassesInAnnotations
|
||||
|
||||
annotation class Annotation2() {
|
||||
public val s: String = ""
|
||||
}
|
||||
|
||||
annotation class Annotation3() {
|
||||
public fun foo() {}
|
||||
}
|
||||
|
||||
annotation class Annotation4() {
|
||||
class Foo() {}
|
||||
}
|
||||
|
||||
annotation class Annotation5() {
|
||||
companion object {}
|
||||
}
|
||||
|
||||
annotation class Annotation6() {
|
||||
init {}
|
||||
}
|
||||
|
||||
annotation class Annotation1() {}
|
||||
|
||||
annotation class Annotation7(val name: String) {}
|
||||
|
||||
annotation class Annotation8(var name: String = "") {}
|
||||
|
||||
annotation class Annotation9(val name: String)
|
||||
|
||||
annotation class Annotation10
|
||||
@@ -1,3 +1,4 @@
|
||||
// FIR_IDENTICAL
|
||||
// !LANGUAGE: +NestedClassesInAnnotations
|
||||
|
||||
annotation class Annotation2() {
|
||||
|
||||
+4
-4
@@ -1,11 +1,11 @@
|
||||
// !LANGUAGE: -NestedClassesInAnnotations
|
||||
|
||||
annotation class Annotation2() {
|
||||
public val s: String = ""
|
||||
<!ANNOTATION_CLASS_MEMBER!>public val s: String = ""<!>
|
||||
}
|
||||
|
||||
annotation class Annotation3() {
|
||||
public fun foo() {}
|
||||
<!ANNOTATION_CLASS_MEMBER!>public fun foo() {}<!>
|
||||
}
|
||||
|
||||
annotation class Annotation4() {
|
||||
@@ -17,14 +17,14 @@ annotation class Annotation5() {
|
||||
}
|
||||
|
||||
annotation class Annotation6() {
|
||||
init {}
|
||||
<!ANNOTATION_CLASS_MEMBER!>init {}<!>
|
||||
}
|
||||
|
||||
annotation class Annotation1() {}
|
||||
|
||||
annotation class Annotation7(val name: String) {}
|
||||
|
||||
annotation class Annotation8(var name: String = "") {}
|
||||
annotation class Annotation8(<!VAR_ANNOTATION_PARAMETER!>var<!> name: String = "") {}
|
||||
|
||||
annotation class Annotation9(val name: String)
|
||||
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
annotation class Ann(
|
||||
val a: Int,
|
||||
var b: Int,
|
||||
c: String
|
||||
)
|
||||
@@ -1,3 +1,4 @@
|
||||
// FIR_IDENTICAL
|
||||
annotation class Ann(
|
||||
val a: Int,
|
||||
<!VAR_ANNOTATION_PARAMETER!>var<!> b: Int,
|
||||
|
||||
+4
-4
@@ -16,8 +16,8 @@ annotation class Foo {
|
||||
}
|
||||
|
||||
|
||||
constructor(s: Int) {}
|
||||
init {}
|
||||
fun function() {}
|
||||
val property get() = Unit
|
||||
<!ANNOTATION_CLASS_MEMBER!>constructor(s: Int) {}<!>
|
||||
<!ANNOTATION_CLASS_MEMBER!>init {}<!>
|
||||
<!ANNOTATION_CLASS_MEMBER!>fun function() {}<!>
|
||||
<!ANNOTATION_CLASS_MEMBER!>val property get() = Unit<!>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user