Skip to content

Commit 0f4a359

Browse files
committed
Add missing compileTimeOnly annotations
1 parent 5dc232a commit 0f4a359

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

library/src/scala/internal/Quoted.scala

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package scala.internal
33
import scala.annotation.{Annotation, compileTimeOnly}
44
import scala.quoted._
55

6+
@compileTimeOnly("Illegal reference to `scala.internal.Quoted`")
67
object Quoted {
78

89
/** A term quote is desugared by the compiler into a call to this method */
@@ -26,9 +27,11 @@ object Quoted {
2627
class patternBindHole extends Annotation
2728

2829
/** A splice of a name in a quoted pattern is that marks the definition of a type splice */
30+
@compileTimeOnly("Illegal reference to `scala.internal.Quoted.patternType`")
2931
class patternType extends Annotation
3032

3133
/** A type pattern that must be aproximated from above */
34+
@compileTimeOnly("Illegal reference to `scala.internal.Quoted.fromAbove`")
3235
class fromAbove extends Annotation
3336

3437
/** Artifact of pickled type splices
@@ -39,7 +42,7 @@ object Quoted {
3942
*
4043
* See ReifyQuotes.scala and PickledQuotes.scala
4144
*/
42-
@compileTimeOnly("Illegal reference to `scala.internal.Quoted.patternBindHole`")
45+
@compileTimeOnly("Illegal reference to `scala.internal.Quoted.quoteTypeTag`")
4346
class quoteTypeTag extends Annotation
4447

4548
}

0 commit comments

Comments
 (0)