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

Resolve ambiguity between divexact methods #1484

Merged
merged 1 commit into from
Nov 5, 2023

Conversation

fingolfin
Copy link
Member

No description provided.

Copy link

codecov bot commented Nov 1, 2023

Codecov Report

Merging #1484 (0e03683) into master (9f11a04) will increase coverage by 0.00%.
The diff coverage is 50.00%.

@@           Coverage Diff           @@
##           master    #1484   +/-   ##
=======================================
  Coverage   86.86%   86.87%           
=======================================
  Files         110      110           
  Lines       28664    28668    +4     
=======================================
+ Hits        24900    24904    +4     
  Misses       3764     3764           
Files Coverage Δ
src/generic/FunctionField.jl 74.12% <50.00%> (+0.14%) ⬆️

... and 2 files with indirect coverage changes

📣 Codecov offers a browser extension for seamless coverage viewing on GitHub. Try it in Chrome or Firefox today!

@thofma
Copy link
Member

thofma commented Nov 2, 2023

Do you have an example? Or was this reported from JET?

@fingolfin
Copy link
Member Author

This was reported by JET, but you are right, an example (added as a test case) would be good. I'll look into it.

@fingolfin
Copy link
Member Author

Err, Aqua reported it, not JET

@fingolfin fingolfin force-pushed the mh/divexact-ambiguity branch from 82e5c4c to 0e03683 Compare November 4, 2023 19:32
@test divexact(2, y) * y == 2
@test divexact(big(2), y) * y == 2
@test divexact(1//2, y) * y == 1//2
@test divexact(big(1)//2, y) * y == 1//2
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This last new test results in an ambiguity error on master, and is fixed by this PR.

@thofma thofma merged commit 8e35f2d into Nemocas:master Nov 5, 2023
13 of 15 checks passed
@thofma
Copy link
Member

thofma commented Nov 5, 2023

Thanks

@fingolfin fingolfin deleted the mh/divexact-ambiguity branch November 5, 2023 10:14
fingolfin added a commit to mgkurtz/AbstractAlgebra.jl that referenced this pull request Nov 21, 2023
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.

2 participants