Better test data

This commit is contained in:
Valentin Kipyatkov
2016-09-20 19:15:18 +03:00
parent dab6f7d13d
commit 7625672914
27 changed files with 26 additions and 42 deletions
@@ -1,16 +0,0 @@
// "Move else branch to the end" "false"
// ERROR: 'else' entry must be the last one in a when-expression
// ERROR: 'else' entry must be the last one in a when-expression
// ERROR: Unreachable code
// ERROR: Unreachable code
package foo
fun foo() {
var i = 2
when (i) {
1, 2 -> { /* some code */ }
el<caret>se -> { /* first else branch */ }
else -> { /* second else branch */ }
3 -> { /* some other code */ }
}
}