093695962a
Enum entries can be used as types in Kotlin (even it's a compilation error) To use the classifier as a type, we need to find if it's hidden or not. The deprecations for classes are calculated on COMPILER_REQUIRED_ANNOTATION phase, and that's okay as it goes before the TYPES phase. For enum entries, the deprecations are calculated on TYPES phase which goes on TYPES phase. This is incorrect as we cannot jump from lower phase to upper phase The hack ignores such deprecation search for enum entires. Test: org.jetbrains.kotlin.analysis.low.level.api.fir.diagnostic.compiler.based.LLFirPreresolvedReversedDiagnosticCompilerFE10TestDataTestGenerated.Tests.testEnumEntryAsType ^KT-57648 ^KT-56543
7 lines
88 B
Kotlin
Vendored
7 lines
88 B
Kotlin
Vendored
// FIR_IDENTICAL
|
|
enum class E {
|
|
ENTRY
|
|
}
|
|
|
|
class A : E.<!ENUM_ENTRY_AS_TYPE!>ENTRY<!>
|