17 lines
427 B
Kotlin
Vendored
17 lines
427 B
Kotlin
Vendored
// FIR_IDENTICAL
|
|
// FIR_DUMP
|
|
// ISSUE: KT-52175
|
|
|
|
annotation class Ann
|
|
annotation class Ann2
|
|
|
|
fun test(x: String?) {
|
|
if (x != null)
|
|
@Ann() @Ann2() { Unit } // It should be Block with annotations
|
|
|
|
if (x != null)
|
|
<!WRONG_ANNOTATION_TARGET!>@Ann()<!> <!WRONG_ANNOTATION_TARGET!>@Ann2()<!> Unit // Annotations on expression
|
|
|
|
<!WRONG_ANNOTATION_TARGET!>@Ann()<!> <!WRONG_ANNOTATION_TARGET!>@Ann2()<!> x
|
|
}
|