Quick fix "add when remaining branches" refactoring + enum / sealed generated name w/o package name

This commit is contained in:
Mikhail Glukhikh
2016-01-12 15:24:23 +03:00
parent 0a3631db6a
commit c3cce53aa2
13 changed files with 58 additions and 39 deletions
@@ -1,7 +1,9 @@
// "Add remaining branches" "true"
// ERROR: Unresolved reference: TODO
// ERROR: Unresolved reference: TODO
enum class Color { R, G, B }
fun test(c: Color) = when(c) {
Color.B -> 0xff
Color.R -> throw AssertionError("")
Color.G -> throw AssertionError("")
Color.R -> TODO()
Color.G -> TODO()
}