Attach "add remaining branches" and "add else branch" fixes to NON_EXHAUSTIVE_WHEN warning #KT-12503 Fixed

This commit is contained in:
Mikhail Glukhikh
2016-05-27 13:04:12 +03:00
parent 8713190e33
commit c26d7e0eba
8 changed files with 64 additions and 7 deletions
@@ -0,0 +1,11 @@
// "Add remaining branches" "true"
// ERROR: Unresolved reference: TODO
// ERROR: Unresolved reference: TODO
enum class Color { R, G, B }
fun use(c: Color) {
<caret>when (c) {
Color.R -> red()
}
}
fun red() {}