Sign in
pigweed
/
third_party
/
github
/
JetBrains
/
kotlin
/
9fc4d94d04f972782fee2dc5b3b25d052d88601a
/
.
/
compiler
/
testData
/
diagnostics
/
tests
/
missingWrongAnnotationTarget.kt
blob: 48b19b9f85cbfa577be09fe7f4b6ff254a61b033 [
file
]
// FIR_IDENTICAL
// ISSUE: KT-53565
@Target
(
AnnotationTarget
.
CLASS
)
annotation
class
InvalidAnn
fun wrongAnnotationTargetInWhenSubject
()
{
// Error expected on annotation
when
(<!
WRONG_ANNOTATION_TARGET
!>
@InvalidAnn
<!>
val x
=
0
)
{
0
->
{}
}
}