diff options
author | Martin Odersky <odersky@gmail.com> | 2008-06-27 15:11:06 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2008-06-27 15:11:06 +0000 |
commit | 5110fdf070862d1b5d1a98125c4d3728300bc9b3 (patch) | |
tree | df272cbbb378fae0b481f3f21320d5901b2af810 | |
parent | de69837219fcd49eb39d42e4e2670a02e632d9ad (diff) | |
download | scala-5110fdf070862d1b5d1a98125c4d3728300bc9b3.tar.gz scala-5110fdf070862d1b5d1a98125c4d3728300bc9b3.tar.bz2 scala-5110fdf070862d1b5d1a98125c4d3728300bc9b3.zip |
rolled back Constructors.scala
-rw-r--r-- | src/compiler/scala/tools/nsc/transform/Constructors.scala | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/compiler/scala/tools/nsc/transform/Constructors.scala b/src/compiler/scala/tools/nsc/transform/Constructors.scala index 920f8a0cd9..5cb86b61fc 100644 --- a/src/compiler/scala/tools/nsc/transform/Constructors.scala +++ b/src/compiler/scala/tools/nsc/transform/Constructors.scala @@ -108,11 +108,13 @@ abstract class Constructors extends Transform { def canBeMoved(tree: Tree) = tree match { //todo: eliminate thisRefSeen case ValDef(mods, _, _, _) => +/* if (!(mods hasFlag PRESUPER | PARAMACCESSOR) && !thisRefSeen && { val g = tree.symbol.getter(tree.symbol.owner); g != NoSymbol && !g.allOverriddenSymbols.isEmpty }) unit.warning(tree.pos, "the semantics of this definition will change; the initialization will no longer be executed before the superclass is called") +*/ (mods hasFlag PRESUPER | PARAMACCESSOR) || !thisRefSeen case _ => false } |