diff options
author | Martin Odersky <odersky@gmail.com> | 2015-10-25 12:54:11 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2015-10-25 13:28:34 +0100 |
commit | 4b1d08928bd008a23fa40490d2998e58a6f06c4d (patch) | |
tree | ccaecfce1b90b2aeef1b851841d20b8531eeb556 /test/dotc | |
parent | dbc668f074b6e121f00a6a63ea55d1a3077f7eb1 (diff) | |
download | dotty-4b1d08928bd008a23fa40490d2998e58a6f06c4d.tar.gz dotty-4b1d08928bd008a23fa40490d2998e58a6f06c4d.tar.bz2 dotty-4b1d08928bd008a23fa40490d2998e58a6f06c4d.zip |
Represent references to Scala2 inner classes as WithFixedSym types
Reason: An inner Scala2 class might be shadowed by a same-named class in a subtype.
In Dotty this is disallowed butin Scala 2 it is possible. For instance, math.Numeric
and math.Ordering both have an inner class "Ops". Normal TypeRef types could not
select the shadowed class in Ordering is the prefix is of type Numeric.
Diffstat (limited to 'test/dotc')
-rw-r--r-- | test/dotc/tests.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/dotc/tests.scala b/test/dotc/tests.scala index aaf3e6c4e..700dcd494 100644 --- a/test/dotc/tests.scala +++ b/test/dotc/tests.scala @@ -149,7 +149,7 @@ class tests extends CompilerTest { @Test def neg_escapingRefs = compileFile(negDir, "escapingRefs", xerrors = 2) @Test def neg_instantiateAbstract = compileFile(negDir, "instantiateAbstract", xerrors = 8) @Test def neg_selfInheritance = compileFile(negDir, "selfInheritance", xerrors = 6) - @Test def neg_selfreq = compileFile(negDir, "selfreq", xerrors = 4) + @Test def neg_selfreq = compileFile(negDir, "selfreq", xerrors = 3) @Test def neg_singletons = compileFile(negDir, "singletons", xerrors = 8) @Test def neg_shadowedImplicits = compileFile(negDir, "arrayclone-new", xerrors = 2) @Test def neg_traitParamsTyper = compileFile(negDir, "traitParamsTyper", xerrors = 5) |