From b2dcc777e5a6a1e6d1fff89c7fa794129ad5d135 Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Wed, 19 Jun 2013 04:45:24 +0200 Subject: Taking accessibility into account for &, | Changed the algorithm for & (and also |) to take accessibility into account. Fixed various problems that opened up when doing this. Under -debug, new and old behavior of & are checked side-by-side and any discrepancy is noted. --- 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 3026562a3..95798d701 100644 --- a/src/dotty/tools/dotc/core/SymDenotations.scala +++ b/src/dotty/tools/dotc/core/SymDenotations.scala @@ -874,7 +874,7 @@ object SymDenotations { } else NoDenotation override final def findMember(name: Name, pre: Type, excluded: FlagSet)(implicit ctx: Context): Denotation = - membersNamed(name).filterExcluded(excluded).asSeenFrom(pre).toDenot + membersNamed(name).filterExcluded(excluded).asSeenFrom(pre).toDenot(pre) private[this] var baseTypeCache: java.util.HashMap[CachedType, Type] = null private[this] var baseTypeValid: RunId = NoRunId -- cgit v1.2.3