FIR: report WRONG_ANNOTATION_TARGET on types
This commit is contained in:
Vendored
+1
-1
@@ -5,7 +5,7 @@ interface I {
|
||||
}
|
||||
|
||||
class A {
|
||||
fun too(): @<!NOT_AN_ANNOTATION_CLASS!>Annotation<!> Unit {}
|
||||
fun too(): <!WRONG_ANNOTATION_TARGET!>@<!NOT_AN_ANNOTATION_CLASS!>Annotation<!><!> Unit {}
|
||||
|
||||
fun foo(): <!REDUNDANT_RETURN_UNIT_TYPE!>Unit<!>
|
||||
{
|
||||
|
||||
@@ -30,7 +30,7 @@ abstract class First {
|
||||
}
|
||||
|
||||
@WithString("xyz")
|
||||
class Second(val y: Char) : @WithInt(0) First() {
|
||||
class Second(val y: Char) : <!WRONG_ANNOTATION_TARGET!>@WithInt(0)<!> First() {
|
||||
override fun foo(arg: Double) {
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user