Expanded information about the SubclassOptInRequired restrictions.

^KT-54617
diff --git a/libraries/stdlib/src/kotlin/annotations/OptIn.kt b/libraries/stdlib/src/kotlin/annotations/OptIn.kt
index 3601e1c..73e5522 100644
--- a/libraries/stdlib/src/kotlin/annotations/OptIn.kt
+++ b/libraries/stdlib/src/kotlin/annotations/OptIn.kt
@@ -165,7 +165,8 @@
  * - Annotate declaration with [OptIn] in order to opt in into the provided guarantees in a non-propagating manner.
  * - Annotate declaration with [SubclassOptInRequired] with the same marker class, making it further propagating only for subclassing.
  *
- * Uses of this annotation are limited to open and abstract classes, and non-`fun` interfaces.
+ * Uses of this annotation are limited to open and abstract classes, and non-`fun` interfaces,
+ * except local classes and sealed classes/interfaces.
  * Any other uses allowed by `CLASS` annotation target yield a compilation error.
  *
  * @property markerClass specifies marker annotation that require explicit opt-in.