summaryrefslogtreecommitdiff
path: root/test/files/run/t6370.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/t6370.scala')
-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")
+ }
+
+ }
+}