Skip to content

Commit 59240df

Browse files
serrasice-phoenix
authored andcommitted
Apply suggestions
1 parent dfe9642 commit 59240df

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

docs/src/md/kotlin.core/declarations.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -543,12 +543,14 @@ Enum class $E$ is a special kind of class with the following properties:
543543
544544
Enum class body uses special kind of syntax (see grammar) to declare enum entries in addition to all other declarations inside the class body.
545545
Enum entries have their own bodies that may contain their own declarations, similar to [object declarations][Classifier declaration].
546-
Enum entries don't introduce their own type, they are always considered to be of type `E`.
547-
As a result, no members can be accessed outside the scope of the enum entry body, other than those overriden from `E` .
548546
549547
> Note: an enum class can have zero enum entries.
550548
> This makes objects of this class impossible to construct.
551549
550+
Enum entries don't introduce their own type, they are always considered to be of type `E`.
551+
552+
> Note: in most platforms, enum entries are governed by the same rules as [anonymous object types][Object literals].
553+
552554
Every enum entry of class `E` implicitly overrides members of `kotlin.Enum<E>` in the following way:
553555
554556
- ```kotlin

0 commit comments

Comments
 (0)