Attach "add remaining branches" and "add else branch" fixes to NON_EXHAUSTIVE_WHEN warning #KT-12503 Fixed
This commit is contained in:
@@ -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() {}
|
||||
Reference in New Issue
Block a user