Files
kotlin-fork/compiler/testData/diagnostics/tests/when/NoElseWhenStatement.kt
T

15 lines
305 B
Kotlin
Vendored

// FIR_IDENTICAL
/*
* KOTLIN DIAGNOSTICS SPEC TEST (POSITIVE)
*
* SPEC VERSION: 0.1-152
* PRIMARY LINKS: expressions, when-expression -> paragraph 5 -> sentence 1
* expressions, when-expression -> paragraph 9 -> sentence 2
*/
fun foo(x: Int) {
when (x) {
2 -> {}
3 -> {}
}
}