Skip to content

Commit 58562b4

Browse files
committed
KT-55755: Also add that we can instantiate annotations since Kotlin 1.6 to annotations.md
1 parent b8cac24 commit 58562b4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/src/md/kotlin.core/annotations.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22

33
Annotations are a form of syntactically-defined metadata which may be associated with different entities in a Kotlin program.
44
Annotations are specified in the source code of the program and may be accessed on a particular platform using platform-specific mechanisms both by the compiler (and source-processing tools) and at runtime (using [reflection][Reflection] facilities).
5-
Values of annotation types cannot be created directly, but can be operated on when accessed using platform-specific facilities.
5+
Values of annotation types can also be created directly, but are usually operated on using platform-specific facilities.
6+
7+
> Note: before Kotlin 1.6, annotation types could not be created directly.
68
79
### Annotation values
810

0 commit comments

Comments
 (0)