@@ -5,23 +5,38 @@ import scala.annotation.{Annotation, compileTimeOnly}
5
5
@ compileTimeOnly(" Illegal reference to `scala.quoted.runtime.Patterns`" )
6
6
object Patterns {
7
7
8
- /** A splice in a quoted pattern is desugared by the compiler into a call to this method */
8
+ /** A splice in a quoted pattern is desugared by the compiler into a call to this method.
9
+ *
10
+ * Calling this method in source has undefined behaviour at compile-time
11
+ */
9
12
@ compileTimeOnly(" Illegal reference to `scala.quoted.runtime.Patterns.patternHole`" )
10
13
def patternHole [T ]: T = ???
11
14
15
+ /** A higher order splice in a quoted pattern is desugared by the compiler into a call to this method.
16
+ *
17
+ * Calling this method in source has undefined behaviour at compile-time
18
+ */
12
19
@ compileTimeOnly(" Illegal reference to `scala.quoted.runtime.Patterns.patternHigherOrderHole`" )
13
- /** A higher order splice in a quoted pattern is desugared by the compiler into a call to this method */
14
20
def patternHigherOrderHole [U ](pat : Any , args : Any * ): U = ???
15
21
22
+ /** A higher order splice in a quoted pattern is desugared by the compiler into a call to this method.
23
+ *
24
+ * Calling this method in source has undefined behaviour at compile-time
25
+ */
16
26
@ compileTimeOnly(" Illegal reference to `scala.quoted.runtime.Patterns.higherOrderHole`" )
17
- /** A higher order splice in a quoted pattern is desugared by the compiler into a call to this method */
18
27
def higherOrderHole [U ](args : Any * ): U = ???
19
28
20
- /** A splice of a name in a quoted pattern is that marks the definition of a type splice */
29
+ /** A splice of a name in a quoted pattern is that marks the definition of a type splice.
30
+ *
31
+ * Adding this annotation in source has undefined behaviour at compile-time
32
+ */
21
33
@ compileTimeOnly(" Illegal reference to `scala.quoted.runtime.Patterns.patternType`" )
22
34
class patternType extends Annotation
23
35
24
- /** A type pattern that must be aproximated from above */
36
+ /** A type pattern that must be aproximated from above
37
+ *
38
+ * Adding this annotation in source has undefined behaviour at compile-time
39
+ */
25
40
@ compileTimeOnly(" Illegal reference to `scala.quoted.runtime.Patterns.fromAbove`" )
26
41
class fromAbove extends Annotation
27
42
0 commit comments