aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/Compiler.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2014-09-06 11:41:12 +0200
committerMartin Odersky <odersky@gmail.com>2014-09-06 11:41:12 +0200
commitb129332c273374018bfdd8a51bbec761118c9d9c (patch)
tree91648f4e855f90101ae557c07d51610cfa6b99f4 /src/dotty/tools/dotc/Compiler.scala
parentc3078b12582773e3a9bb356e168fb646ec6733b1 (diff)
downloaddotty-b129332c273374018bfdd8a51bbec761118c9d9c.tar.gz
dotty-b129332c273374018bfdd8a51bbec761118c9d9c.tar.bz2
dotty-b129332c273374018bfdd8a51bbec761118c9d9c.zip
Move explicit outer after pattern matching
But allow pattern matching to provide outer accessors when needed using with ensureOuterAccessors.
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 377f9fbdc..cd5ef4cae 100644
--- a/src/dotty/tools/dotc/Compiler.scala
+++ b/src/dotty/tools/dotc/Compiler.scala
@@ -54,8 +54,9 @@ class Compiler {
new ElimRepeated,
new ElimLocals),
List(new ExtensionMethods),
- List(new TailRec, new ExplicitOuter),
+ List(new TailRec),
List(new PatternMatcher,
+ new ExplicitOuter,
// new LazyValTranformContext().transformer, // disabled, awaiting fixes
new Splitter),
List(new ElimByName,