Skip to content

Commit fa82e4c

Browse files
committed
Fix returned value for failed ml_matches.
1 parent c6d55a1 commit fa82e4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3143,7 +3143,7 @@ static jl_value_t *ml_matches(jl_methtable_t *mt,
31433143
size_t *min_valid, size_t *max_valid, int *ambig)
31443144
{
31453145
if (world > jl_atomic_load_acquire(&jl_world_counter))
3146-
return jl_nothing; // the future is not enumerable
3146+
return (jl_value_t*)jl_an_empty_vec_any; // the future is not enumerable
31473147
int has_ambiguity = 0;
31483148
jl_value_t *unw = jl_unwrap_unionall((jl_value_t*)type);
31493149
assert(jl_is_datatype(unw));

0 commit comments

Comments
 (0)