-
-
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
Invalid redefinition of unchanged type #52686
Comments
I think this would fix it: diff --git a/src/builtins.c b/src/builtins.c
index 4a300c1f4d..58892b34b1 100644
--- a/src/builtins.c
+++ b/src/builtins.c
@@ -2046,7 +2046,7 @@ static int equiv_field_types(jl_value_t *old, jl_value_t *ft)
jl_value_t *ta = jl_svecref(old, i);
jl_value_t *tb = jl_svecref(ft, i);
if (jl_has_free_typevars(ta)) {
- if (!jl_has_free_typevars(tb) || !jl_egal(ta, tb))
+ if (!jl_has_free_typevars(tb) || !jl_types_egal(ta, tb))
return 0;
}
else if (jl_has_free_typevars(tb) || jl_typetagof(ta) != jl_typetagof(tb) || |
timholy
added a commit
that referenced
this issue
Jan 4, 2024
aviatesk
added a commit
that referenced
this issue
Jan 6, 2024
Fixes #52686 Fixes timholy/Revise.jl#770 --------- Co-authored-by: Jameson Nash <[email protected]> Co-authored-by: Kristoffer Carlsson <[email protected]> Co-authored-by: Shuhei Kadowaki <[email protected]>
aviatesk
added a commit
that referenced
this issue
Jan 6, 2024
Fixes #52686 Fixes timholy/Revise.jl#770 --------- Co-authored-by: Jameson Nash <[email protected]> Co-authored-by: Kristoffer Carlsson <[email protected]> Co-authored-by: Shuhei Kadowaki <[email protected]>
Drvi
pushed a commit
to RelationalAI/julia
that referenced
this issue
Jun 7, 2024
Fixes JuliaLang#52686 Fixes timholy/Revise.jl#770 --------- Co-authored-by: Jameson Nash <[email protected]> Co-authored-by: Kristoffer Carlsson <[email protected]> Co-authored-by: Shuhei Kadowaki <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Revise-free MWE from timholy/Revise.jl#770
Changing
a::A{<:T}
toa::A{T}
does not trigger the error, leading me to suspect that this may be a bug inCore._equiv_typedef
(EDIT: nope, it returnstrue
for bothA
andB
, must be elsewhere):The text was updated successfully, but these errors were encountered: