Skip to content

Restrict getindex for partials to a single Int - #437

Merged
andreasnoack merged 1 commit into
JuliaDiff:masterfrom
timholy:teh/getindex
Jan 20, 2020
Merged

Restrict getindex for partials to a single Int#437
andreasnoack merged 1 commit into
JuliaDiff:masterfrom
timholy:teh/getindex

Conversation

@timholy

Copy link
Copy Markdown
Contributor

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
Copy Markdown
ContributorAuthor

@andreasnoack
andreasnoack merged commit fc69d37 into JuliaDiff:masterJan 20, 2020
@timholy
timholy deleted the teh/getindex branch January 20, 2020 11:16
@andreasnoackandreasnoack mentioned this pull request Nov 29, 2020
Sign up for freeto 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

@timholy@andreasnoack