Files
kotlin-fork/compiler/testData/diagnostics/tests/when/AnnotatedWhenStatement.kt
T
2020-03-30 19:12:55 +03:00

17 lines
439 B
Kotlin
Vendored

// FIR_IDENTICAL
/*
* RELEVANT SPEC SENTENCES (spec version: 0.1-313, test type: pos):
* - expressions, when-expression -> paragraph 9 -> sentence 2
* - expressions, when-expression -> paragraph 5 -> sentence 1
* - expressions, when-expression -> paragraph 6 -> sentence 5
* - annotations, annotation-targets -> paragraph 1 -> sentence 1
*/
fun foo(a: Int) {
@ann
when (a) {
1 -> {}
}
}
annotation class ann