blob: 48180ddf9d3234faac56502f26ed4aeedbce1b46 (
plain) (
tree)
|
|
// 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)
}
}
|