"is" over enum entry is now an error + new tests + test fixes
This commit is contained in:
@@ -5,7 +5,7 @@ enum class MyEnum {
|
||||
fun foo(x: MyEnum): Int {
|
||||
return when (x) {
|
||||
MyEnum.A -> 1
|
||||
is MyEnum.B -> 2
|
||||
is MyEnum.C -> 3
|
||||
is <!IS_ENUM_ENTRY!>MyEnum.B<!> -> 2
|
||||
is <!IS_ENUM_ENTRY!>MyEnum.C<!> -> 3
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user