You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I recognize this might be more than one issue and will be happy to split it up if desired.
I've tagged this with latency because it seems to be a really common source of invalidations for packages like JuliaInterpreter and similar that have to deal with a lot of poorly-typed data. I constantly think I'm being careful, but often it's not working. (Noticed while investigating #36005, though @KristofferC pointed this out to me earlier.)
The text was updated successfully, but these errors were encountered:
Regarding the first observation, there was a comment by Jameson over at #35600 (comment):
"[...] inference currently can only propagate the last isa constraint on a line"
Inference fails to take full advantage of the knowledge that
a
andb
are bothSymbol
s:Interestingly, the pure
&&
chain does not have the same problem:It may not be exactly the same issue (it also involves constant-propagation), but this is also not inferred successfully:
And finally, in a dream world, inference would know that a successful
isexpr
call implies thatex::Expr
. This is assumed all over the place, e.g.,julia/base/show.jl
Lines 1038 to 1039 in 38f2c59
item.args
is inferred asAny
. This affects even the 2-argument form, e.g.,I recognize this might be more than one issue and will be happy to split it up if desired.
I've tagged this with latency because it seems to be a really common source of invalidations for packages like JuliaInterpreter and similar that have to deal with a lot of poorly-typed data. I constantly think I'm being careful, but often it's not working. (Noticed while investigating #36005, though @KristofferC pointed this out to me earlier.)
The text was updated successfully, but these errors were encountered: