aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/Compiler.scala
diff options
context:
space:
mode:
authorFelix Mulder <felix.mulder@gmail.com>2016-05-24 00:07:49 +0200
committerFelix Mulder <felix.mulder@gmail.com>2016-05-26 13:20:10 +0200
commit7930293ee1f2d169956d472631487a637b744eb2 (patch)
tree9fc9c5f70663e45e59ee3a3a291f8675dcf776b3 /src/dotty/tools/dotc/Compiler.scala
parent1f4c9f4c4eedbbe12164a07a62ed4d2fa0b66aff (diff)
downloaddotty-7930293ee1f2d169956d472631487a637b744eb2.tar.gz
dotty-7930293ee1f2d169956d472631487a637b744eb2.tar.bz2
dotty-7930293ee1f2d169956d472631487a637b744eb2.zip
Add initial partial evaluation of isInstanceOf calls
Diffstat (limited to 'src/dotty/tools/dotc/Compiler.scala')
-rw-r--r--src/dotty/tools/dotc/Compiler.scala1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/dotty/tools/dotc/Compiler.scala b/src/dotty/tools/dotc/Compiler.scala
index b63e0236d..049906ef0 100644
--- a/src/dotty/tools/dotc/Compiler.scala
+++ b/src/dotty/tools/dotc/Compiler.scala
@@ -61,6 +61,7 @@ class Compiler {
new CrossCastAnd, // Normalize selections involving intersection types.
new Splitter), // Expand selections involving union types into conditionals
List(new VCInlineMethods, // Inlines calls to value class methods
+ new IsInstanceOfEvaluator, // Issues warnings when unreachable statements are present in match/if expressions
new SeqLiterals, // Express vararg arguments as arrays
new InterceptedMethods, // Special handling of `==`, `|=`, `getClass` methods
new Getters, // Replace non-private vals and vars with getter defs (fields are added later)