Skip to content

Commit 9da1662

Browse files
committed
fix #10867
1 parent 5fcaa38 commit 9da1662

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/gf.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ static inline int cache_match(jl_value_t **args, size_t n, jl_tupletype_t *sig,
119119
jl_datatype_t *ta = (jl_datatype_t*)jl_typeof(a);
120120
if (!jl_is_tuple_type(ta) || //!jl_subtype(a, decl, 1))
121121
!jl_tuple_subtype(jl_svec_data(ta->parameters), jl_datatype_nfields(ta),
122-
(jl_datatype_t*)decl, 1))
122+
(jl_datatype_t*)decl, 0))
123123
return 0;
124124
}
125125
else if (jl_is_type_type(decl) && jl_is_type(a)) {

test/core.jl

+4
Original file line numberDiff line numberDiff line change
@@ -2766,3 +2766,7 @@ immutable Array_512_Uint8
27662766
d512::Uint8
27672767
end
27682768
gc()
2769+
2770+
# issue #10867
2771+
@test collect(enumerate((Tuple,Int))) == [(1,Tuple), (2,Int)]
2772+
@test collect(enumerate((Tuple,3))) == [(1,Tuple), (2,3)]

0 commit comments

Comments
 (0)