File tree Expand file tree Collapse file tree 3 files changed +19
-2
lines changed
compiler/src/dotty/tools/dotc/quoted Expand file tree Collapse file tree 3 files changed +19
-2
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ import dotty.tools.dotc.core.Symbols.defn
1515import dotty .tools .dotc .core .Types .ExprType
1616import dotty .tools .dotc .core .quoted .PickledQuotes
1717import dotty .tools .dotc .tastyreflect .ReflectionImpl
18- import dotty .tools .dotc .transform .Staging
18+ import dotty .tools .dotc .transform .ReifyQuotes
1919import dotty .tools .dotc .util .Spans .Span
2020import dotty .tools .dotc .util .SourceFile
2121import dotty .tools .io .{Path , VirtualFile }
@@ -36,7 +36,7 @@ class QuoteCompiler extends Compiler {
3636 List (List (new QuotedFrontend ))
3737
3838 override protected def picklerPhases : List [List [Phase ]] =
39- List (List (new Staging ))
39+ List (List (new ReifyQuotes ))
4040
4141 override def newRun (implicit ctx : Context ): ExprRun = {
4242 reset()
Original file line number Diff line number Diff line change 1+ foo
2+ bar
Original file line number Diff line number Diff line change 1+
2+ import scala .quoted ._
3+
4+ object Test {
5+ implicit val tbx : scala.quoted.Toolbox = scala.quoted.Toolbox .make(getClass.getClassLoader)
6+
7+ def main (args : Array [String ]): Unit = {
8+ val y : Expr [Unit ] = ' {
9+ val x : Expr [Unit ] = ' {println(" bar" )}
10+ println(" foo" )
11+ x.run
12+ }
13+ y.run
14+ }
15+ }
You can’t perform that action at this time.
0 commit comments