aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/core/Scopes.scala
diff options
context:
space:
mode:
Diffstat (limited to 'src/dotty/tools/dotc/core/Scopes.scala')
-rw-r--r--src/dotty/tools/dotc/core/Scopes.scala3
1 files changed, 2 insertions, 1 deletions
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)