diff --git a/src/method.c b/src/method.c index ec49fdf32a193..6f240efaa0b7a 100644 --- a/src/method.c +++ b/src/method.c @@ -911,7 +911,7 @@ static jl_methtable_t *nth_methtable(jl_value_t *a JL_PROPAGATES_ROOT, int n) JL if (mt != NULL) return mt; } - if (jl_is_tuple_type(a)) { + else if (jl_is_tuple_type(a)) { if (jl_nparams(a) >= n) return nth_methtable(jl_tparam(a, n - 1), 0); }