KT-29340 Provide effective modality for enum class in IR

* if enum class has abstract members, then it is ABSTRACT
* otherwise, if enum class has entries with members, then it is OPEN
* otherwise, it is FINAL.
This commit is contained in:
Dmitry Petrov
2019-01-21 12:53:13 +03:00
parent efdb4e1d5d
commit 360bfcaf6a
16 changed files with 776 additions and 39 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
FILE fqName:<root> fileName:/enumEntry.kt
CLASS ENUM_CLASS name:Z modality:FINAL visibility:public flags: superTypes:[kotlin.Enum<Z>]
CLASS ENUM_CLASS name:Z modality:OPEN visibility:public flags: superTypes:[kotlin.Enum<Z>]
$this: VALUE_PARAMETER INSTANCE_RECEIVER name:<this> type:Z flags:
CONSTRUCTOR visibility:private <> () returnType:Z flags:primary
BLOCK_BODY