diff options
author | Paul Phillips <paulp@improving.org> | 2010-04-24 02:49:34 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2010-04-24 02:49:34 +0000 |
commit | a0e5e165c97c01cf0854aeda72e4e9d1d037bb8c (patch) | |
tree | dbb7bf2e6793590a730ac4137107f53b5c4d11ed /test | |
parent | 6736ca07f22a8da42604a27bda84f71b720b54ed (diff) | |
download | scala-a0e5e165c97c01cf0854aeda72e4e9d1d037bb8c.tar.gz scala-a0e5e165c97c01cf0854aeda72e4e9d1d037bb8c.tar.bz2 scala-a0e5e165c97c01cf0854aeda72e4e9d1d037bb8c.zip |
Took another of universal equality's victims to...
Took another of universal equality's victims to the hospital. Closes
#3348, no review.
Diffstat (limited to 'test')
-rw-r--r-- | test/files/run/mapValues.scala | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/files/run/mapValues.scala b/test/files/run/mapValues.scala new file mode 100644 index 0000000000..d3266bd18f --- /dev/null +++ b/test/files/run/mapValues.scala @@ -0,0 +1,8 @@ +object Test { + val m = Map(1 -> 1, 2 -> 2) + val mv = (m mapValues identity) - 1 + + def main(args: Array[String]): Unit = { + assert(mv.size == 1) + } +} |