Quick fix "add when remaining branches" refactoring + enum / sealed generated name w/o package name
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user