c648356887
These two diagnostics are similar: both are reported on type references to enum entries. But `IS_ENUM_TYPE` is reported if the type ref is an operand of `is` operator. To pass along this contextual information, a boolean is added to FirSpecificTypeResolverTransformer.
7 lines
115 B
Kotlin
Vendored
7 lines
115 B
Kotlin
Vendored
enum class MyEnum {
|
|
FIRST,
|
|
SECOND
|
|
}
|
|
|
|
fun foo(me: MyEnum): Boolean = me is <!IS_ENUM_ENTRY!>MyEnum.FIRST<!>
|