Skip to content

Commit cd8c92b

Browse files
committed
Allow uncheckedStable on defs, vars
This can be handy for retaining source compatibility. Or for when you just know better. Fixes scala/bug#8908
1 parent 763b3e5 commit cd8c92b

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,7 +12,10 @@
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
*/
20+
@getter @field
1821
final class uncheckedStable extends scala.annotation.StaticAnnotation {}

0 commit comments

Comments
 (0)