Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NTuples made me sad (so I nixed them) #11242

Merged
merged 16 commits into from
May 5, 2016
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Incorporate type_match_invariance_mask in tuple_match
  • Loading branch information
timholy committed May 5, 2016
commit f57b858cfc796174053eb085d9e83bf448a37df0
2 changes: 2 additions & 0 deletions src/jltypes.c
Original file line number Diff line number Diff line change
Expand Up @@ -2856,6 +2856,7 @@ static jl_value_t *tuple_match(jl_datatype_t *child, jl_datatype_t *parent,
int cseq=0, pseq=0;
jl_value_t *ce=NULL, *pe=NULL, *cn=NULL, *pn=NULL;
int mode = 0;
invariant = invariant & type_match_invariance_mask;
while(1) {
if (!cseq)
cseq = (ci<clenr) && clenkind != JL_TUPLE_FIXED && jl_is_vararg_type(jl_tparam(child,ci));
Expand Down Expand Up @@ -2926,6 +2927,7 @@ static jl_value_t *type_match_(jl_value_t *child, jl_value_t *parent,
cenv_t *env, int morespecific, int invariant)
{
jl_value_t *tmp, *tmp2;
invariant = invariant & type_match_invariance_mask;
if (jl_is_typector(child))
child = (jl_value_t*)((jl_typector_t*)child)->body;
if (jl_is_typector(parent))
Expand Down