From e445000dc747b55351f3bc60bb5f849bb6aac096 Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Tue, 4 Nov 2014 20:14:05 +0100 Subject: Fixed redundancy in membersNeedAsSeenFrom Array types are no longer used after erasure, so the test was redundant. --- src/dotty/tools/dotc/core/SymDenotations.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/dotty/tools/dotc/core/SymDenotations.scala') 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) ) -- cgit v1.2.3