Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

regression: FiniteDuration mul & div return Duration #6389

Closed
scabug opened this issue Sep 18, 2012 · 3 comments
Closed

regression: FiniteDuration mul & div return Duration #6389

scabug opened this issue Sep 18, 2012 · 3 comments
Milestone

Comments

@scabug
Copy link

@scabug scabug commented Sep 18, 2012

"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).

@scabug

This comment has been minimized.

Copy link
Author

@scabug scabug commented Sep 18, 2012

Imported From: https://issues.scala-lang.org/browse/SI-6389?orig=1
Reporter: @rkuhn
Assignee: @rkuhn
Affected Versions: 2.10.0
Other Milestones: 2.10.0

@scabug

This comment has been minimized.

Copy link
Author

@scabug scabug commented Sep 18, 2012

@rkuhn said:
pull request here: scala/scala#1339

@scabug

This comment has been minimized.

Copy link
Author

@scabug scabug commented Sep 20, 2012

@jsuereth said:
Thanks for the fix!

@scabug scabug closed this Sep 20, 2012
@scabug scabug added this to the 2.10.0-M7 milestone Apr 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.