Introduce warning REDUNDANT_ELSE_IN_WHEN #KT-17497 Fixed

This commit is contained in:
Mikhail Glukhikh
2017-04-28 14:45:13 +03:00
parent e53c548ead
commit 14886827a2
8 changed files with 172 additions and 20 deletions
@@ -30,6 +30,6 @@ enum class MyEnum {
val x = when(<!DEBUG_INFO_LEAKING_THIS!>this<!>) {
<!UNINITIALIZED_ENUM_ENTRY!>A<!> -> 1
<!UNINITIALIZED_ENUM_ENTRY!>B<!> -> 2
else -> 3
<!REDUNDANT_ELSE_IN_WHEN!>else<!> -> 3
}
}