Scala Programming Language
  1. Scala Programming Language
  2. SI-6389

regression: FiniteDuration mul & div return Duration

    Details

      Description

      "2.seconds * 2" used to return a FiniteDuration in 2.10.0-M7, now it returns a Duration, which breaks otherwise safe arithmetic operations on finite durations (requiring casts).

        Activity

        Hide
        Roland Kuhn added a comment -
        Show
        Roland Kuhn added a comment - pull request here: https://github.com/scala/scala/pull/1339
        Hide
        Josh Suereth added a comment -

        Thanks for the fix!

        Show
        Josh Suereth added a comment - Thanks for the fix!

          People

          • Assignee:
            Roland Kuhn
            Reporter:
            Roland Kuhn
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development