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
Add "mea culpa" to foreign module assignment error. (#56956)
As requested in #56933, acknowledge that this error was missing in Julia
1.9 and 1.10 and provide a reference to the issue so that people have an
easier starting point.
if (decode_restriction_kind(pku) !=BINDING_KIND_DECLARED) {
291
291
check_safe_newbinding(m, var);
292
292
if (!alloc)
293
-
jl_errorf("Global %s.%s does not exist and cannot be assigned. Declare it using `global` before attempting assignment.", jl_symbol_name(m->name), jl_symbol_name(var));
293
+
jl_errorf("Global %s.%s does not exist and cannot be assigned.\n"
294
+
"Note: Julia 1.9 and 1.10 inadvertently omitted this error check (#56933).\n"
295
+
"Hint: Declare it using `global %s` inside `%s` before attempting assignment.",
0 commit comments