aboutsummaryrefslogtreecommitdiff
path: root/test/dotc
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2014-09-25 13:25:06 +0200
committerDmitry Petrashko <dmitry.petrashko@gmail.com>2014-10-11 06:38:11 +0200
commit543ff7f4123ded7172fd6ede59f09945efd7c158 (patch)
tree1c14165b391ca2b6de15f5a584fc804474ada13e /test/dotc
parent167581469779cabc7138427d506a16507369cbf5 (diff)
downloaddotty-543ff7f4123ded7172fd6ede59f09945efd7c158.tar.gz
dotty-543ff7f4123ded7172fd6ede59f09945efd7c158.tar.bz2
dotty-543ff7f4123ded7172fd6ede59f09945efd7c158.zip
Make changeOwner more robust regarding non-standard owner chains
The problem is running changeOwner(from, to) where - from is a ValDef or a Label - an embedded definition has as owner not `from` but some owner of `from`. We allow such denomrlaized owners and the pattern matcher generates them. This patch makes changeOwner take these situations into account.
Diffstat (limited to 'test/dotc')
-rw-r--r--test/dotc/tests.scala8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/dotc/tests.scala b/test/dotc/tests.scala
index 336c52220..c828712ae 100644
--- a/test/dotc/tests.scala
+++ b/test/dotc/tests.scala
@@ -109,12 +109,12 @@ class tests extends CompilerTest {
// @odersky, fails with datarace
@Test def dotc_parsing = compileDir(dotcDir + "tools/dotc/parsing", twice)
- // @Test def dotc_printing = compileDir(dotcDir + "tools/dotc/printing", twice)
- // @odersky, elimByName creates symbol with incorrect owner
+ @Test def dotc_printing = compileDir(dotcDir + "tools/dotc/printing", twice)
+ // @odersky, elimByName creates symbol with incorrect owner (fixed)
@Test def dotc_reporting = compileDir(dotcDir + "tools/dotc/reporting", twice)
- // @Test def dotc_typer = compileDir(dotcDir + "tools/dotc/typer", twice)
- // @odersky, elimByName creates symbol with incorrect owner
+ @Test def dotc_typer = compileDir(dotcDir + "tools/dotc/typer", twice)
+ // @odersky, elimByName creates symbol with incorrect owner (fixed)
@Test def dotc_util = compileDir(dotcDir + "tools/dotc/util", twice)
@Test def tools_io = compileDir(dotcDir + "tools/io", twice)