Files
kotlin-fork/compiler/testData/diagnostics/tests/annotations/onLoopsUnreachable.kt
T
2021-06-25 16:37:35 +03:00

14 lines
322 B
Kotlin
Vendored

// LANGUAGE: -ProhibitSimplificationOfNonTrivialConstBooleanExpressions
fun test() {
@ann
while (<!NON_TRIVIAL_BOOLEAN_CONSTANT!>2 > 1<!>) {}
@ann
<!UNREACHABLE_CODE!>do {} while (<!NON_TRIVIAL_BOOLEAN_CONSTANT!>2 > 1<!>)<!>
@ann
<!UNREACHABLE_CODE!>for (i in 1..2) {}<!>
}
annotation class ann