We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Vararg handling in getfield_tfunc is brittle:
getfield_tfunc
julia> foo(xs::Union{Tuple{String}, Int}...) = getfield(xs...) foo (generic function with 1 method) julia> code_typed(foo) 1-element Vector{Any}: CodeInfo( 1 ─ Core._apply_iterate(Base.iterate, Main.getfield, xs)::Union{} └── unreachable ) => Union{} julia> foo(("hello",), 1) [27438] signal 4 (1): Illegal instruction: 4 in expression starting at REPL[3]:1 foo at ./REPL[1]:1 jl_apply at /Users/julia/.julia/scratchspaces/a66863c6-20e8-4ff4-8a62-49f30b1f605e/agent-cache/default-honeycrisp-XC9YQX9HH2.0/build/default-honeycrisp-XC9YQX9HH2-0/julialang/julia-release-1-dot-11/src/./julia.h:2157 [inlined]
(Found while trying to understand enough of getfield_tfunc and getfield_nothrow to fix #56056 (comment))
getfield_nothrow
The text was updated successfully, but these errors were encountered:
Fix getfield_tfunc when order or boundscheck is Vararg
b40eecc
Even if T has no intersection with the type we want, we don't know that we will throw, because the arguments are optional. Fixes JuliaLang#57292.
7beae37
xal-0
Successfully merging a pull request may close this issue.
Vararg handling in
getfield_tfunc
is brittle:(Found while trying to understand enough of
getfield_tfunc
andgetfield_nothrow
to fix #56056 (comment))The text was updated successfully, but these errors were encountered: