Files
kotlin-fork/compiler/testData/diagnostics/tests/when/NoElseWhenStatement.kt
T
2020-03-30 11:15:52 +03:00

13 lines
293 B
Kotlin
Vendored

// FIR_IDENTICAL
/*
* RELEVANT SPEC SENTENCES (spec version: 0.1-152, test type: pos):
* - expressions, when-expression -> paragraph 5 -> sentence 1
* - expressions, when-expression -> paragraph 9 -> sentence 2
*/
fun foo(x: Int) {
when (x) {
2 -> {}
3 -> {}
}
}