aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/Compiler.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2014-07-05 19:20:47 +0200
committerMartin Odersky <odersky@gmail.com>2014-07-17 11:02:00 +0200
commit1fdc188af5b8b34b1a54555dc48e6f2ccb3294c8 (patch)
treea3b03731dbd176ababe950c42c769649c18932a3 /src/dotty/tools/dotc/Compiler.scala
parent30013465f45b9085b044b7abec36d7bd8d3b1b2b (diff)
downloaddotty-1fdc188af5b8b34b1a54555dc48e6f2ccb3294c8.tar.gz
dotty-1fdc188af5b8b34b1a54555dc48e6f2ccb3294c8.tar.bz2
dotty-1fdc188af5b8b34b1a54555dc48e6f2ccb3294c8.zip
New micro phase: Literalize
Convert expressions with constant types to Literals.
Diffstat (limited to 'src/dotty/tools/dotc/Compiler.scala')
-rw-r--r--src/dotty/tools/dotc/Compiler.scala3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/Compiler.scala b/src/dotty/tools/dotc/Compiler.scala
index d202f3a52..b51f383f7 100644
--- a/src/dotty/tools/dotc/Compiler.scala
+++ b/src/dotty/tools/dotc/Compiler.scala
@@ -28,7 +28,8 @@ class Compiler {
new Splitter),
List(new Nullarify,
new TypeTestsCasts,
- new InterceptedMethods),
+ new InterceptedMethods,
+ new Literalize),
List(new Erasure),
List(new UncurryTreeTransform
/* , new Constructors */)