julia
Force inference of `convert(::Type{T}, ::T) where T` via typeasserts
#46573
Merged

Force inference of `convert(::Type{T}, ::T) where T` via typeasserts #46573

KristofferC merged 3 commits into JuliaLang:master from thchr:oneto-inval
thchr
aviatesk
aviatesk commented on 2022-09-01
jakobnissen
thchr
vtjnash
thchr
vtjnash
vtjnash
thchr
vtjnash
vtjnash
vtjnash
thchr
thchr thchr force pushed from 99160087 to 03533fd4 3 years ago
vtjnash
vtjnash approved these changes on 2022-09-01
thchr thchr changed the title Improve inference of `last(::OneTo{<:Any})` Force inference of `convert(::Type{T}, T) where T` via typeasserts 3 years ago
dkarrasch dkarrasch added compiler:inference
thchr thchr changed the title Force inference of `convert(::Type{T}, T) where T` via typeasserts Force inference of `convert(::Type{T}, ::T) where T` via typeasserts 3 years ago
thchr
vtjnash
thchr improve inference for callers of `last(::OneTo{<:Any})` and `first(::…
269f7d54
thchr use more general fix suggested by @vtjnash
0224bfc7
thchr typeassert return type of all methods of `convert(Type{T}, T) where T`
cfa51489
thchr thchr force pushed from 82655a2d to cfa51489 3 years ago
thchr
thchr
KristofferC KristofferC merged ffaaa303 into master 3 years ago
thchr thchr deleted the oneto-inval branch 3 years ago

Login to write a write a comment.

Login via GitHub

Reviewers
Assignees
No one assigned
Labels
Milestone