Skip to content

Commit 762023b

Browse files
committed
chore: add scala.language.2 to files in scala.annotation
1 parent da1c550 commit 762023b

33 files changed

+64
-0
lines changed

library/src/scala/annotation/Annotation.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212

1313
package scala.annotation
1414

15+
import scala.language.`2`
16+
1517
/**
1618
* A base class for annotations.
1719
*

library/src/scala/annotation/ClassfileAnnotation.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212

1313
package scala.annotation
1414

15+
import scala.language.`2`
16+
1517
/** A base class for classfile annotations. These are stored as
1618
* [[https://docs.oracle.com/javase/8/docs/technotes/guides/language/annotations.html Java annotations]]
1719
* in classfiles.

library/src/scala/annotation/ConstantAnnotation.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212

1313
package scala.annotation
1414

15+
import scala.language.`2`
16+
1517
/**
1618
* Annotation classes extending this trait only accept constant values as arguments.
1719
*

library/src/scala/annotation/StaticAnnotation.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212

1313
package scala.annotation
1414

15+
import scala.language.`2`
16+
1517
/**
1618
* A base class for static annotations. These are available to the Scala type checker or Scala
1719
* reflection, even across different compilation units.

library/src/scala/annotation/TypeConstraint.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212

1313
package scala.annotation
1414

15+
import scala.language.`2`
16+
1517
/** A marker for annotations that, when applied to a type, should be treated
1618
* as a constraint on the annotated type.
1719
*

library/src/scala/annotation/compileTimeOnly.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
package scala.annotation
1414

15+
import scala.language.`2`
1516
import scala.annotation.meta._
1617

1718
/**

library/src/scala/annotation/elidable.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212

1313
package scala.annotation
1414

15+
import scala.language.`2`
16+
1517
/** An annotation for methods whose bodies may be excluded
1618
* from compiler-generated bytecode.
1719
*

library/src/scala/annotation/implicitAmbiguous.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212

1313
package scala.annotation
1414

15+
import scala.language.`2`
16+
1517
/**
1618
* To customize the error message that's emitted when an implicit search finds
1719
* multiple ambiguous values, annotate at least one of the implicit values

library/src/scala/annotation/implicitNotFound.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212

1313
package scala.annotation
1414

15+
import scala.language.`2`
16+
1517
/**
1618
* To customize the error message that's emitted when an implicit of type
1719
* `C[T1,..., TN]` cannot be found, annotate the class `C` with `@implicitNotFound`.

library/src/scala/annotation/meta/beanGetter.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212

1313
package scala.annotation.meta
1414

15+
import scala.language.`2`
16+
1517
/**
1618
* Consult the documentation in package [[scala.annotation.meta]].
1719
*/

0 commit comments

Comments
 (0)