We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8f89ff6 commit 9b50b98Copy full SHA for 9b50b98
src/gf.c
@@ -666,7 +666,7 @@ static jl_lambda_info_t *jl_typemap_assoc_exact(union jl_typemap_t ml_or_cache,
666
return li;
667
}
668
assert(jl_is_datatype(ty));
669
- if (cache->arg1 != (void*)jl_nothing && offs < 2) {
+ if (cache->arg1 != (void*)jl_nothing && offs < 2 && n > 1) {
670
ml_or_cache = mtcache_hash_lookup(cache->arg1, ty, 0, offs);
671
if (jl_typeof(ml_or_cache.unknown) == (jl_value_t*)jl_typemap_entry_type &&
672
ml_or_cache.leaf->simplesig == (void*)jl_nothing) {
0 commit comments