Quick fix "Add remaining when branches" with some tests

This commit is contained in:
Mikhail Glukhikh
2016-01-11 18:37:21 +03:00
parent 44b07d8dfa
commit 8b6156abd6
11 changed files with 162 additions and 3 deletions
@@ -0,0 +1,7 @@
// "Add remaining branches" "true"
enum class Color { R, G, B }
fun test(c: Color) = when(c) {
Color.B -> 0xff
Color.R -> throw AssertionError("")
Color.G -> throw AssertionError("")
}