Report initializer block-related diagnostic on 'init' keyword

This commit is contained in:
Alexander Udalov
2016-11-02 15:51:13 +03:00
parent 68cf4bf440
commit eacf64e4db
7 changed files with 25 additions and 18 deletions
@@ -4,8 +4,8 @@ class A {
}
interface T {
<!ANONYMOUS_INITIALIZER_IN_INTERFACE!><!WRONG_ANNOTATION_TARGET!>@ann<!> init {}<!>
<!ANONYMOUS_INITIALIZER_IN_INTERFACE!><!WRONG_ANNOTATION_TARGET!>@<!UNRESOLVED_REFERENCE!>aaa<!><!> init {}<!>
<!WRONG_ANNOTATION_TARGET!>@ann<!> <!ANONYMOUS_INITIALIZER_IN_INTERFACE!>init<!> {}
<!WRONG_ANNOTATION_TARGET!>@<!UNRESOLVED_REFERENCE!>aaa<!><!> <!ANONYMOUS_INITIALIZER_IN_INTERFACE!>init<!> {}
}
annotation class ann
annotation class ann