File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed 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