blob: 8dd070f0861bd3c356d7cc799b3e1aae3c72cdf5 (
plain) (
tree)
|
|
import scala.tools.partest.Util.trace
import scala.util.control.Exception.allCatch
object Test extends dotty.runtime.LegacyApp {
def intercept = allCatch.withApply(_.getClass)
val t: Boolean = true
trace(if (t) -0d else 0d)
trace(if (t) 0d else -0d)
trace(intercept(if (???) -0d else 0d))
trace(intercept(if (???) 0d else 0d))
trace(intercept(if (???) () else ()))
}
|