Skip to content

Commit b8b019b

Browse files
committed
document unroll annot
1 parent 6247589 commit b8b019b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
package scala.annotation
22

33
@experimental("under review as part of SIP-61")
4+
/**The `@unroll` annotation is reserved for parameters of classes and methods.
5+
*
6+
* It enables to add new parameters while preserving backwards binary compatibility,
7+
* through code generation of hidden forwarder methods (but visible in the binary API).
8+
*
9+
* Read more about parameter unrolling, and the usage of `@unroll` in the reference documentation:
10+
* https://dotty.epfl.ch/docs/reference/experimental/unrolled-defs.html
11+
*/
412
final class unroll extends scala.annotation.StaticAnnotation

0 commit comments

Comments
 (0)