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 Rational{T} constructor for abstract T #41229

Merged
merged 1 commit into from
Jun 15, 2021

Conversation

sostock
Copy link
Contributor

@sostock sostock commented Jun 14, 2021

This makes Rational{T}(::Integer, ::Integer) always return a value of type Rational{T}, even when T is abstract. Fixes #41222.

@sostock sostock added backport 1.6 Change should be backported to release-1.6 backport 1.7 bugfix This change fixes an existing bug labels Jun 14, 2021
@dkarrasch dkarrasch merged commit e34c77b into JuliaLang:master Jun 15, 2021
KristofferC pushed a commit that referenced this pull request Jun 17, 2021
@KristofferC KristofferC mentioned this pull request Jun 17, 2021
20 tasks
KristofferC pushed a commit that referenced this pull request Jun 29, 2021
@KristofferC KristofferC mentioned this pull request Jun 29, 2021
45 tasks
johanmon pushed a commit to johanmon/julia that referenced this pull request Jul 5, 2021
@KristofferC KristofferC removed the backport 1.6 Change should be backported to release-1.6 label Jul 12, 2021
staticfloat pushed a commit that referenced this pull request Dec 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix This change fixes an existing bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rational{T}(x,y) with abstract T changed in Julia 1.5
4 participants