From 37002e9fb650510e16cd038c5d7026bed50060f9 Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Thu, 2 Jan 2014 16:04:49 +0100 Subject: Some cleanups. --- src/dotty/tools/dotc/core/Scopes.scala | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/dotty/tools/dotc/core/Scopes.scala') diff --git a/src/dotty/tools/dotc/core/Scopes.scala b/src/dotty/tools/dotc/core/Scopes.scala index ef1ddc8b3..06f9ea6c1 100644 --- a/src/dotty/tools/dotc/core/Scopes.scala +++ b/src/dotty/tools/dotc/core/Scopes.scala @@ -17,6 +17,7 @@ import Denotations._ import SymDenotations._ import printing.Texts._ import printing.Printer +import util.common._ import SymDenotations.NoDenotation import collection.mutable.ListBuffer @@ -342,7 +343,7 @@ object Scopes { */ def scopeTransform(owner: Symbol)(op: => MutableScope): MutableScope = op - val selectAll: SymDenotation => Boolean = Function.const(true) + val selectAll: SymDenotation => Boolean = alwaysTrue val selectPrivate: SymDenotation => Boolean = d => (d is Flags.Private) val selectNonPrivate: SymDenotation => Boolean = d => !(d is Flags.Private) -- cgit v1.2.3