[FIR] Pass annotations to buildResolvedQualifierForClass

This commit is contained in:
Ivan Kochurkin
2022-06-04 21:56:35 +03:00
committed by teamcity
parent 1ac4d68433
commit c5648fd449
4 changed files with 17 additions and 4 deletions
@@ -10,5 +10,7 @@ fun test(x: String?) {
@Ann() @Ann2() { Unit } // It should be Block with annotations
if (x != null)
@Ann() @Ann2() Unit // It should be SingleExpressionBlock with annotations
}
<!WRONG_ANNOTATION_TARGET!>@Ann()<!> <!WRONG_ANNOTATION_TARGET!>@Ann2()<!> Unit // Annotations on expression
<!WRONG_ANNOTATION_TARGET!>@Ann()<!> <!WRONG_ANNOTATION_TARGET!>@Ann2()<!> x
}