diff options
author | Philipp Haller <hallerp@gmail.com> | 2007-07-10 13:41:29 +0000 |
---|---|---|
committer | Philipp Haller <hallerp@gmail.com> | 2007-07-10 13:41:29 +0000 |
commit | 212f89bcc6a31a2facb338e5dfb02d7b61c26891 (patch) | |
tree | 91716dc71eb0e5c18354a5994d4fea74a33141bd /docs/examples | |
parent | 01d6a088daf681a89fcf6443039fba3d02f6c999 (diff) | |
download | scala-212f89bcc6a31a2facb338e5dfb02d7b61c26891.tar.gz scala-212f89bcc6a31a2facb338e5dfb02d7b61c26891.tar.bz2 scala-212f89bcc6a31a2facb338e5dfb02d7b61c26891.zip |
Replaced AllRef with Null in maps example.
Diffstat (limited to 'docs/examples')
-rw-r--r-- | docs/examples/maps.scala | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/examples/maps.scala b/docs/examples/maps.scala index ac54068730..d545b50ab9 100644 --- a/docs/examples/maps.scala +++ b/docs/examples/maps.scala @@ -15,7 +15,7 @@ object maps { val empty: map } - class AlgBinTree[kt >: AllRef <: Ordered[kt], vt >: AllRef <: AnyRef]() extends MapStruct[kt, vt] { + class AlgBinTree[kt >: Null <: Ordered[kt], vt >: Null <: AnyRef]() extends MapStruct[kt, vt] { type map = AlgMap val empty: AlgMap = Empty() @@ -65,7 +65,7 @@ object maps { } } - class OOBinTree[kt >: AllRef <: Ordered[kt], vt >: AllRef <: AnyRef]() extends MapStruct[kt, vt] { + class OOBinTree[kt >: Null <: Ordered[kt], vt >: Null <: AnyRef]() extends MapStruct[kt, vt] { type map = OOMap trait OOMap extends Map { @@ -105,7 +105,7 @@ object maps { } } - class MutBinTree[kt >: AllRef <: Ordered[kt], vt >: AllRef <: AnyRef]() extends MapStruct[kt, vt] { + class MutBinTree[kt >: Null <: Ordered[kt], vt >: Null <: AnyRef]() extends MapStruct[kt, vt] { type map = MutMap class MutMap(key: kt, value: vt) extends Map { val k = key |