mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-17 00:21:28 +00:00
#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.
8 lines
79 B
Kotlin
8 lines
79 B
Kotlin
class A {
|
|
enum class E {
|
|
OK
|
|
}
|
|
}
|
|
|
|
fun box() = A.E.OK.toString()
|