[FIR] Consistent isLocal for objects inside Enum entries

This commit is contained in:
Andrey Zinovyev
2021-04-15 16:02:04 +03:00
committed by TeamCityServer
parent 7084fec651
commit 27766c2575
6 changed files with 14 additions and 9 deletions
+2
View File
@@ -4,6 +4,8 @@
enum class E {
ENTRY,
SUBCLASS {
// Because of KT-45115 classes/objects inside enum entries are local in FIR
@Suppress("LOCAL_OBJECT_NOT_ALLOWED")
object O {
fun foo() = 2
}