aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/util
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2013-07-19 16:11:10 +0200
committerMartin Odersky <odersky@gmail.com>2013-07-19 17:02:03 +0200
commitea640a32264cb78efbf267d5c2be89e3e99dcccf (patch)
treee4c3103d9d08580d9ef478763fb52c80548feef8 /src/dotty/tools/dotc/util
parent17ef71dc2b11c5d1a82307f79d50c7ed0f77fd81 (diff)
downloaddotty-ea640a32264cb78efbf267d5c2be89e3e99dcccf.tar.gz
dotty-ea640a32264cb78efbf267d5c2be89e3e99dcccf.tar.bz2
dotty-ea640a32264cb78efbf267d5c2be89e3e99dcccf.zip
Additions needed to support implicits.
Still to do: - properly account for bounded wildcard types - set up scheme for nested diagnostics buffers.
Diffstat (limited to 'src/dotty/tools/dotc/util')
-rw-r--r--src/dotty/tools/dotc/util/Set.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dotty/tools/dotc/util/Set.scala b/src/dotty/tools/dotc/util/Set.scala
index 4183186ed..231d862f9 100644
--- a/src/dotty/tools/dotc/util/Set.scala
+++ b/src/dotty/tools/dotc/util/Set.scala
@@ -6,7 +6,7 @@ package dotty.tools.dotc.util
/** A common class for lightweight sets.
*/
-abstract class Set[T <: AnyRef] {
+abstract class Set[T >: Null] {
def findEntry(x: T): T
@@ -19,7 +19,7 @@ abstract class Set[T <: AnyRef] {
def apply(x: T): Boolean = contains(x)
def contains(x: T): Boolean =
- findEntry(x) ne null
+ findEntry(x) != null
def toList = iterator.toList