[FIR] Introduce a feature flag for context-sensitive enum resolution

The feature was previously enabled unconditionally in K2 which
triggered a bug when an enum has an entry with the same name as itself.

#KT-58897 Fixed
#KT-52774
This commit is contained in:
Kirill Rakhman
2023-05-26 16:55:35 +02:00
committed by Space Team
parent 4b643480d6
commit cf2ef443f4
16 changed files with 69 additions and 7 deletions
+1
View File
@@ -1,6 +1,7 @@
// TARGET_BACKEND: JVM_IR
// IGNORE_BACKEND_K1: JVM_IR
// WITH_STDLIB
// LANGUAGE: +ContextSensitiveEnumResolutionInWhen
enum class Rainbow {
RED,