From c711d8a0d4a2c24c5f4a81bc0309ed8aeef6371b Mon Sep 17 00:00:00 2001 From: Jameson Nash Date: Mon, 10 Feb 2020 22:41:45 -0500 Subject: [PATCH] bugfix fixes #29859 --- src/gf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gf.c b/src/gf.c index e7c3cae97832c..c86cea3b90de0 100644 --- a/src/gf.c +++ b/src/gf.c @@ -1271,7 +1271,8 @@ static int check_ambiguous_visitor(jl_typemap_entry_t *oldentry, struct typemap_ // ok: record that this method definition is being partially replaced // (either with a real definition, or an ambiguity error) - if (shadowed) { + // be careful not to try to scan something from the current dump-reload though + if (shadowed && oldentry->min_world != closure->newentry->min_world) { if (closure->shadowed == NULL) { closure->shadowed = (jl_value_t*)oldentry; }