-
-
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
tuple_tfunc bug handling of Union
containing Type{...}
#44705
Comments
That is an odd looking signature type, since we should be unable to ever select that part of the union. There do not exist any values which satisfy isa |
incorrect:
correct:
|
Tuple{Type{...}}
Union
containing Type{...}
I guess this issue should be raised before, but I couldn't find an issue that discusses this.
When working on #44512 (in particularity this issue), I found the following
isa
check doesn't work as I expected:So in essence
Tuple
-type whose parameter containsType
-type doesn't seem to follow the covariant rule.This issue leads to the
ERROR: fatal error in type inference (type bound)
error in #44512 when we try to union-splitBase.indexed_iterate(::Union{Tuple{Nothing, Nothing, Nothing}, Tuple{Any, Union{Type{AbstractContinuousSystem}, Type{AbstractDiscreteSystem}}, Any}}, ...)
callsite.The text was updated successfully, but these errors were encountered: