summaryrefslogtreecommitdiff
path: root/test/files
diff options
context:
space:
mode:
authorJames Iry <jamesiry@gmail.com>2013-02-11 11:07:20 -0800
committerJames Iry <jamesiry@gmail.com>2013-02-11 11:07:20 -0800
commit74fc185bcdc37f6a5362e499cb4adf42c18e89e6 (patch)
tree19820c7efd46e57f8ab7fe2330baec91f1db8c80 /test/files
parentb3b49d2217f21ce51eeed584f5bffb7febea5e50 (diff)
parent7b425bf7f02c15d6c3577f21318c6bdfc92d6b35 (diff)
downloadscala-74fc185bcdc37f6a5362e499cb4adf42c18e89e6.tar.gz
scala-74fc185bcdc37f6a5362e499cb4adf42c18e89e6.tar.bz2
scala-74fc185bcdc37f6a5362e499cb4adf42c18e89e6.zip
Merge pull request #2096 from ViniciusMiana/SI-6370
SI-6370 changed ListMap apply0 method to produce correct error message
Diffstat (limited to 'test/files')
-rw-r--r--test/files/run/t6370.scala12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/files/run/t6370.scala b/test/files/run/t6370.scala
new file mode 100644
index 0000000000..c86b87dc8a
--- /dev/null
+++ b/test/files/run/t6370.scala
@@ -0,0 +1,12 @@
+object Test {
+
+ def main(args: Array[String]): Unit = {
+ val m = collection.immutable.ListMap( "x" -> 1 )
+ try {
+ m("y")
+ } catch {
+ case e : NoSuchElementException => assert(e.getMessage() == "key not found: y")
+ }
+
+ }
+}