diff options
author | James Iry <jamesiry@gmail.com> | 2013-02-11 11:07:20 -0800 |
---|---|---|
committer | James Iry <jamesiry@gmail.com> | 2013-02-11 11:07:20 -0800 |
commit | 74fc185bcdc37f6a5362e499cb4adf42c18e89e6 (patch) | |
tree | 19820c7efd46e57f8ab7fe2330baec91f1db8c80 /test/files/run | |
parent | b3b49d2217f21ce51eeed584f5bffb7febea5e50 (diff) | |
parent | 7b425bf7f02c15d6c3577f21318c6bdfc92d6b35 (diff) | |
download | scala-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/run')
-rw-r--r-- | test/files/run/t6370.scala | 12 |
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") + } + + } +} |