Skip to content

Commit 4a710f3

Browse files
lrytzdwijnand
authored andcommitted
Allow uncheckedStable on defs, vars
This can be handy for retaining source compatibility. Or for when you just know better. Fixes scala/bug#8908 (cherry picked from commit cd8c92b)
1 parent a8d2c26 commit 4a710f3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

library/src/scala/annotation/unchecked/uncheckedStable.scala

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,12 @@
1212

1313
package scala.annotation.unchecked
1414

15+
import scala.annotation.meta.{field, getter}
16+
1517
/** An annotation for values that are assumed to be stable even though their
1618
* types are volatile.
1719
*
1820
* @since 2.7
1921
*/
22+
@getter @field
2023
final class uncheckedStable extends scala.annotation.StaticAnnotation {}

0 commit comments

Comments
 (0)