Skip to content

Commit 9651235

Browse files
JeffBezansonKristofferC
authored andcommitted
exclude types with free variables from type_morespecific (#35555)
(cherry picked from commit 0cedde6)
1 parent 75c7c60 commit 9651235

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/subtype.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3761,6 +3761,8 @@ JL_DLLEXPORT int jl_type_morespecific(jl_value_t *a, jl_value_t *b)
37613761
{
37623762
if (obviously_disjoint(a, b, 1))
37633763
return 0;
3764+
if (jl_has_free_typevars(a) || jl_has_free_typevars(b))
3765+
return 0;
37643766
if (jl_subtype(b, a))
37653767
return 0;
37663768
if (jl_subtype(a, b))

0 commit comments

Comments
 (0)