Introduce warning REDUNDANT_ELSE_IN_WHEN #KT-17497 Fixed
This commit is contained in:
+1
-1
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user