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
15
15
import dotty .tools .dotc .core .Types .ExprType
16
16
import dotty .tools .dotc .core .quoted .PickledQuotes
17
17
import dotty .tools .dotc .tastyreflect .ReflectionImpl
18
- import dotty .tools .dotc .transform .Staging
18
+ import dotty .tools .dotc .transform .ReifyQuotes
19
19
import dotty .tools .dotc .util .Spans .Span
20
20
import dotty .tools .dotc .util .SourceFile
21
21
import dotty .tools .io .{Path , VirtualFile }
@@ -36,7 +36,7 @@ class QuoteCompiler extends Compiler {
36
36
List (List (new QuotedFrontend ))
37
37
38
38
override protected def picklerPhases : List [List [Phase ]] =
39
- List (List (new Staging ))
39
+ List (List (new ReifyQuotes ))
40
40
41
41
override def newRun (implicit ctx : Context ): ExprRun = {
42
42
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