Skip to content

Restrict getindex for partials to a single Int #437

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

Merged
merged 1 commit into from
Jan 20, 2020
Merged

Restrict getindex for partials to a single Int #437

merged 1 commit into from
Jan 20, 2020

Conversation

timholy
Copy link
Contributor

@timholy timholy commented Jan 20, 2020

Fixes a display bug:

julia> p = ForwardDiff.Partials((1,2,3))
3-element ForwardDiff.Partials{3,Int64}:
Error showing value of type ForwardDiff.Partials{3,Int64}:
ERROR: MethodError: no method matching 
getindex(::Tuple{Int64,Int64,Int64}, ::Int64, ::Int64)

Fixes a display bug:
julia> p = ForwardDiff.Partials((1,2,3))
3-element ForwardDiff.Partials{3,Int64}:
Error showing value of type ForwardDiff.Partials{3,Int64}:
ERROR: MethodError: no method matching 
getindex(::Tuple{Int64,Int64,Int64}, ::Int64, ::Int64)
@timholy
Copy link
Contributor Author

timholy commented Jan 20, 2020

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