37fd9cea08
#KT-2771 In Progress ClassifierCollector now collects all enum declarations inside non-static classes. After all declarations are done, it processes these enums: creates a class object if it's not present, reports errors on each enum if a class object is not allowed, and puts every enum into this class object otherwise, recording this fact to trace.
10 lines
154 B
Kotlin
10 lines
154 B
Kotlin
class A {
|
|
class object {
|
|
enum class E { ENTRY } // OK
|
|
}
|
|
|
|
class B {
|
|
<!ENUM_NOT_ALLOWED!>enum<!> class E { ENTRY }
|
|
}
|
|
}
|