[FIR] Initialize annotations for block for LightTree

This commit is contained in:
Ivan Kochurkin
2022-06-02 15:21:58 +03:00
committed by teamcity
parent 34b5ce21a1
commit 1ac4d68433
3 changed files with 25 additions and 4 deletions
@@ -3,8 +3,12 @@
// ISSUE: KT-52175
annotation class Ann
annotation class Ann2
fun test(x: String?) {
if (x != null)
@Ann() { Unit }
@Ann() @Ann2() { Unit } // It should be Block with annotations
if (x != null)
@Ann() @Ann2() Unit // It should be SingleExpressionBlock with annotations
}