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

`precompile´ should maybe error when given non type inputs? #57474

Open
KristofferC opened this issue Feb 20, 2025 · 0 comments
Open

`precompile´ should maybe error when given non type inputs? #57474

KristofferC opened this issue Feb 20, 2025 · 0 comments

Comments

@KristofferC
Copy link
Member

julia> precompile(Tuple{typeof(Base.isequal), Int, Int})
true

julia> precompile(Tuple{typeof(Base.isequal), 1, 2})
false

Instead of returning false, maybe this should error since AFAIU these input are pretty much nonsense.

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

No branches or pull requests

1 participant