diff options
author | Josh Suereth <Joshua.Suereth@gmail.com> | 2012-08-06 13:31:32 -0700 |
---|---|---|
committer | Josh Suereth <Joshua.Suereth@gmail.com> | 2012-08-06 13:31:32 -0700 |
commit | f5b9ef4cd76d2c6ebf311bcee573fd43fc880326 (patch) | |
tree | 7bfe26021baaa7ad7e0765fff298c82e0c13798e /test/files/run/t6188.scala | |
parent | b531f9577f5be47f99b0be0d6b9d586668e9ae69 (diff) | |
parent | 17037367049312eb3d26766a5759295ac9f8aed6 (diff) | |
download | scala-f5b9ef4cd76d2c6ebf311bcee573fd43fc880326.tar.gz scala-f5b9ef4cd76d2c6ebf311bcee573fd43fc880326.tar.bz2 scala-f5b9ef4cd76d2c6ebf311bcee573fd43fc880326.zip |
Merge pull request #1059 from magarciaEPFL/ticket-SI-6188
SI-6188
Diffstat (limited to 'test/files/run/t6188.scala')
-rw-r--r-- | test/files/run/t6188.scala | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/files/run/t6188.scala b/test/files/run/t6188.scala new file mode 100644 index 0000000000..48180ddf9d --- /dev/null +++ b/test/files/run/t6188.scala @@ -0,0 +1,12 @@ +// SI-6188 Optimizer incorrectly removes method invocations containing throw expressions + +import scala.util.Success + +object Test { + def main(args: Array[String]) { + val e = new Exception("this is an exception") + val res = Success(1).flatMap[Int](x => throw e) + println(res) + } +} + |