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 {
3535
3636 override def phaseName : String = Staging .name
3737
38+ override def runsAfter : Set [String ] = Set (PostTyper .name)
39+
3840 override def allowsImplicitSearch : Boolean = true
3941
4042 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 {
3434 override protected def frontendPhases : List [List [Phase ]] = List (
3535 List (new REPLFrontEnd ),
3636 List (new CollectTopLevelImports ),
37+ List (new PostTyper ),
3738 List (new Staging ),
38- List (new PostTyper )
3939 )
4040
4141 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