aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/core/SymDenotations.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2014-11-04 20:14:05 +0100
committerMartin Odersky <odersky@gmail.com>2014-11-09 19:08:59 +0100
commite445000dc747b55351f3bc60bb5f849bb6aac096 (patch)
tree6a4883e6d5706044c80173f444b7560d8cadc5b7 /src/dotty/tools/dotc/core/SymDenotations.scala
parent7194afe4b9a0bb04700b023a1c29047eb6349f88 (diff)
downloaddotty-e445000dc747b55351f3bc60bb5f849bb6aac096.tar.gz
dotty-e445000dc747b55351f3bc60bb5f849bb6aac096.tar.bz2
dotty-e445000dc747b55351f3bc60bb5f849bb6aac096.zip
Fixed redundancy in membersNeedAsSeenFrom
Array types are no longer used after erasure, so the test was redundant.
Diffstat (limited to 'src/dotty/tools/dotc/core/SymDenotations.scala')
-rw-r--r--src/dotty/tools/dotc/core/SymDenotations.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/core/SymDenotations.scala b/src/dotty/tools/dotc/core/SymDenotations.scala
index ae8fceeb7..99b1c9f77 100644
--- a/src/dotty/tools/dotc/core/SymDenotations.scala
+++ b/src/dotty/tools/dotc/core/SymDenotations.scala
@@ -560,7 +560,7 @@ object SymDenotations {
def membersNeedAsSeenFrom(pre: Type)(implicit ctx: Context) =
!( this.isTerm
|| this.isStaticOwner
- || ctx.erasedTypes && symbol != defn.ArrayClass
+ || ctx.erasedTypes
|| (pre eq NoPrefix) || (pre eq thisType)
)