diff options
Diffstat (limited to 'tests/run/t6370.scala')
-rw-r--r-- | tests/run/t6370.scala | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/run/t6370.scala b/tests/run/t6370.scala new file mode 100644 index 000000000..c86b87dc8 --- /dev/null +++ b/tests/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") + } + + } +} |