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

Fix the opaque type of Quantity#value to Double #78

Merged
merged 1 commit into from
Jan 28, 2025

Conversation

propensive
Copy link
Owner

@propensive propensive commented Jan 28, 2025

Scala 3.6 appears to introduce a chance to how opaque types are inferred, notably in an inline def. Consequently, the value method of Quantity was still being given its Quantity type, unchanged, rather than the desired Double. This is now fixed.

@propensive propensive merged commit 975b3f1 into main Jan 28, 2025
1 check passed
@propensive propensive deleted the fix-opaque-typing-for-quantity branch January 28, 2025 12:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant