summaryrefslogtreecommitdiff
path: root/sources
diff options
context:
space:
mode:
authormihaylov <mihaylov@epfl.ch>2004-09-10 18:19:48 +0000
committermihaylov <mihaylov@epfl.ch>2004-09-10 18:19:48 +0000
commitaf375eabc6c38ab29c931d1de6aba237b1ab746c (patch)
treeb5b91d5347d75ab5554333e9ea818ff2cb769931 /sources
parent71da85dba605df234e9159dfeb41d01ce0f64681 (diff)
downloadscala-af375eabc6c38ab29c931d1de6aba237b1ab746c.tar.gz
scala-af375eabc6c38ab29c931d1de6aba237b1ab746c.tar.bz2
scala-af375eabc6c38ab29c931d1de6aba237b1ab746c.zip
- Replaced a regular pattern match with a regul...
- Replaced a regular pattern match with a regular pattern match (no kidding!)
Diffstat (limited to 'sources')
-rw-r--r--sources/scala/runtime/matching/Address.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/scala/runtime/matching/Address.scala b/sources/scala/runtime/matching/Address.scala
index 2691d27801..4f9299cc57 100644
--- a/sources/scala/runtime/matching/Address.scala
+++ b/sources/scala/runtime/matching/Address.scala
@@ -19,7 +19,7 @@ class Address( l:Int* ) with Ordered[Address] {
/** precond: p is nonempty */
def right: Address = list.match {
- case List( i, rest@_* ) => new Address( ((i+1) :: rest ):_* )
+ case i :: rest => new Address( ((i+1) :: rest ):_* )
}
override def toString() = list.mkString("Address(",".",")");