Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 method ambiguities and limit operate to Number subtypes #2224
Fix method ambiguities and limit operate to Number subtypes #2224
Changes from all commits
47f4100
b12241b
b31f65f
a90cd6e
b36a994
4396c93
2f60715
049a92f
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
Check warning on line 49 in src/Bridges/Constraint/bridges/slack.jl
Codecov / codecov/patch
src/Bridges/Constraint/bridges/slack.jl#L49
Check warning on line 56 in src/Bridges/Constraint/bridges/slack.jl
Codecov / codecov/patch
src/Bridges/Constraint/bridges/slack.jl#L56
Check warning on line 62 in src/Bridges/Constraint/bridges/slack.jl
Codecov / codecov/patch
src/Bridges/Constraint/bridges/slack.jl#L62
Check warning on line 69 in src/Bridges/Constraint/bridges/slack.jl
Codecov / codecov/patch
src/Bridges/Constraint/bridges/slack.jl#L69
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is breaking, but only in the sense that it was never documented or expected to work. having functions with non-number coefficients is just asking for trouble.
It's also weird because this is the only case where we'd expect things to work. You can't do
*(::NonNumber, ::VariableIndex)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditto here. The method below assumes
Number
, so these are really inconsistent and a bug fix.