-
Notifications
You must be signed in to change notification settings - Fork 31
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
Error: Unhandled TypeVar #379
Comments
Can you please provide the signature of method being analyzed here? diff --git a/src/toplevel/virtualprocess.jl b/src/toplevel/virtualprocess.jl
index 134a1142..015bb8d0 100644
--- a/src/toplevel/virtualprocess.jl
+++ b/src/toplevel/virtualprocess.jl
@@ -423,6 +423,7 @@ function analyze_from_definitions!(analyzer::AbstractAnalyzer, res::VirtualProce
(i == n ? println : print)(io, "analyzing from top-level definitions ... $succeeded/$n")
end
analyzer = AbstractAnalyzer(analyzer, _CONCRETIZED, _TOPLEVELMOD)
+ println("analyzing ", mm.method, "...")
analyzer, result = analyze_method!(
analyzer, (first(mms)::MethodMatch).method;
# JETAnalyzer{BasicPass}: don't report errors unless this frame is concrete |
Sorry for the late reply, I just got back from holidays. module Foo
foo(x::Union{Complex{T}, T}) where T = isdefined(x, :im)
end # module Foo |
…func` Improves the robustness of `isdefined_tfunc` when it splits `Union` with `TypeVar`s. Originally reported at <aviatesk/JET.jl#379>.
Thanks for the very useful MRE. Do you want to have this fix on 1.8? |
Thanks, that was fast! No, it's fine. I don't really need this software to be stable until about 6-12 months from now, and if necessary, I can work around it. |
…func` (#46534) Improves the robustness of `isdefined_tfunc` when it splits `Union` with `TypeVar`s. Originally reported at <aviatesk/JET.jl#379>.
When doing
analyze_package
on v Julia 1.8-rc using JET 0.6.1, I get the following.Unfortunately, it only happens with a package I can't share.
The text was updated successfully, but these errors were encountered: