Introduce "Add remaining when branches" intention #KT-23306 Fixed

This commit is contained in:
Toshiaki Kameyama
2018-05-11 06:57:25 +03:00
committed by Mikhail Glukhikh
parent bde9a57c9e
commit 2c59f96ca4
17 changed files with 212 additions and 41 deletions
@@ -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>
}
}