-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
fix #44735, raise exception on Vararg
-arguments in subtype
rather than abort
#44761
Conversation
@vtjnash does this seem sensible to you? |
I am not precisely sure how Vararg works now, but seems probably safe. Seems like something that should be handled internally to type-intersection though, where other conditions are checked? |
yeah, if EDIT: |
ok, now the exception would be raised within subtype.c. |
typeintersect
arguments on Julia levelVararg
-arguments in subtype
rather than abort
IIRC @JeffBezanson felt pretty strongly that passing non-type object here is a bug and should assert, but maybe I'm misremembering. Regardless, we should check with him when he's back from vacation. |
Right, I don't think subtype/intersection should need to throw any errors. Currently there is only one ( I think we wanted this assert after the |
Thanks @JeffBezanson for your comment. I removed the @nanosoldier |
Your benchmark job has completed - possible performance regressions were detected. A full report can be found here. |
@nanosoldier |
Your benchmark job has completed - possible performance regressions were detected. A full report can be found here. |
@nanosoldier |
Your benchmark job has completed - no performance regressions were detected. A full report can be found here. |
Seems good to go? |
No description provided.