Kapt: never generate enums as final

Behavior differs between JVM and JVM_IR backends here because in JVM,
the class descriptor comes from the frontend, and its modality for enum
is never final. For JVM IR, the class descriptor is based on IrClass,
whose modality is sometimes final for enum, presumably because it's
easier for backends (see `ClassGenerator.getEffectiveModality`).

 #KT-49682
This commit is contained in:
Alexander Udalov
2021-12-16 00:19:07 +01:00
parent fc2c0eea27
commit b3820564b0
8 changed files with 82 additions and 20 deletions
@@ -1,5 +1,3 @@
// IGNORE_BACKEND: JVM_IR
interface Context
enum class Result {