Skip to content

Commit

Permalink
exclude types with free variables from type_morespecific (#35555)
Browse files Browse the repository at this point in the history
(cherry picked from commit 0cedde6)
  • Loading branch information
JeffBezanson authored and KristofferC committed May 10, 2020
1 parent 75c7c60 commit 9651235
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/subtype.c
Original file line number Diff line number Diff line change
Expand Up @@ -3761,6 +3761,8 @@ JL_DLLEXPORT int jl_type_morespecific(jl_value_t *a, jl_value_t *b)
{
if (obviously_disjoint(a, b, 1))
return 0;
if (jl_has_free_typevars(a) || jl_has_free_typevars(b))
return 0;
if (jl_subtype(b, a))
return 0;
if (jl_subtype(a, b))
Expand Down

0 comments on commit 9651235

Please sign in to comment.