Skip to content

Commit cc345f6

Browse files
authored
fix error for assignment to global of wrong type (#44183)
Accidentally missed this in #43671
1 parent 8e8676d commit cc345f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/module.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -808,7 +808,7 @@ JL_DLLEXPORT void jl_checked_assignment(jl_binding_t *b, jl_value_t *rhs)
808808
{
809809
jl_value_t *old_ty = NULL;
810810
if (!jl_atomic_cmpswap_relaxed(&b->ty, &old_ty, (jl_value_t*)jl_any_type) && !jl_isa(rhs, old_ty)) {
811-
jl_errorf("cannot set type for global %s. It already has a value of a different type.",
811+
jl_errorf("cannot assign an incompatible value to the global %s.",
812812
jl_symbol_name(b->name));
813813
}
814814
if (b->constp) {

0 commit comments

Comments
 (0)