Kapt+JVM_IR: do not generate nested enum as final

#KT-54187 Fixed
This commit is contained in:
Alexander Udalov
2022-09-26 19:57:22 +02:00
committed by Space Team
parent 766a51069c
commit c813e03c1e
3 changed files with 27 additions and 6 deletions
@@ -21,3 +21,7 @@ enum class Nested1 {
}
};
}
interface I {
enum class Nested { WHITE }
}
@@ -63,6 +63,23 @@ public enum Enum2 {
////////////////////
import java.lang.System;
@kotlin.Metadata()
public abstract interface I {
@kotlin.Metadata()
public static enum Nested {
/*public static final*/ WHITE /* = new Nested() */;
Nested() {
}
}
}
////////////////////
import java.lang.System;
@kotlin.Metadata()