File tree Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,8 @@ class Staging extends MacroTransform {
35
35
36
36
override def phaseName : String = Staging .name
37
37
38
+ override def runsAfter : Set [String ] = Set (PostTyper .name)
39
+
38
40
override def allowsImplicitSearch : Boolean = true
39
41
40
42
override def checkPostCondition (tree : Tree )(using Context ): Unit =
Original file line number Diff line number Diff line change @@ -34,8 +34,8 @@ class ReplCompiler extends Compiler {
34
34
override protected def frontendPhases : List [List [Phase ]] = List (
35
35
List (new REPLFrontEnd ),
36
36
List (new CollectTopLevelImports ),
37
+ List (new PostTyper ),
37
38
List (new Staging ),
38
- List (new PostTyper )
39
39
)
40
40
41
41
def newRun (initCtx : Context , state : State ): Run = new Run (this , initCtx) {
Original file line number Diff line number Diff line change
1
+ scala> import scala.quoted._
2
+ scala> def foo(expr: Expr[Any])(using Quotes) = expr match { case '{ $x: t } => '{ $x: Any } }
3
+ def foo(expr: quoted.Expr[Any])(using x$2: quoted.Quotes): quoted.Expr[Any]
4
+ scala> def bar(expr: Expr[Any])(using Quotes) = expr match { case '{ $x: t } => '{ val a: t = ??? ; ???} }
5
+ def bar(expr: quoted.Expr[Any])(using x$2: quoted.Quotes): quoted.Expr[Nothing]
You can’t perform that action at this time.
0 commit comments