Introduce "Add remaining when branches" intention #KT-23306 Fixed
This commit is contained in:
committed by
Mikhail Glukhikh
parent
bde9a57c9e
commit
2c59f96ca4
+10
@@ -0,0 +1,10 @@
|
||||
enum class Entry {
|
||||
FOO, BAR, BAZ
|
||||
}
|
||||
|
||||
fun test(e: Entry): Int {
|
||||
return when (e) {
|
||||
<spot>Entry.FOO -> 1
|
||||
else -> 0</spot>
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user