Skip to content
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

missing error handling in descend entry for non-types #503

Open
vtjnash opened this issue Sep 14, 2023 · 0 comments
Open

missing error handling in descend entry for non-types #503

vtjnash opened this issue Sep 14, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@vtjnash
Copy link
Contributor

vtjnash commented Sep 14, 2023

julia> descend(show, (1,))
ERROR: MethodError: no method matching widenconst(::Int64)

Inference assumes you have handled this case already before entry, usually by sanitizing with one of the entry functions (signature_type or to_tuple_type)

julia> code_lowered(show, (1,))
ERROR: argument tuple type must contain only types
Stacktrace:
 [1] error(s::String)
   @ Base ./error.jl:35
 [2] to_tuple_type(t::Any)
   @ Base ./reflection.jl:990
 [3] signature_type(f::Any, argtypes::Any)
   @ Base ./reflection.jl:1000
@simeonschaub simeonschaub added the bug Something isn't working label Sep 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants