Skip to content

Commit 0cedde6

Browse files
authored
exclude types with free variables from type_morespecific (#35555)
1 parent 4c19f96 commit 0cedde6

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
@@ -3847,6 +3847,8 @@ JL_DLLEXPORT int jl_type_morespecific(jl_value_t *a, jl_value_t *b)
38473847
{
38483848
if (obviously_disjoint(a, b, 1))
38493849
return 0;
3850+
if (jl_has_free_typevars(a) || jl_has_free_typevars(b))
3851+
return 0;
38503852
if (jl_subtype(b, a))
38513853
return 0;
38523854
if (jl_subtype(a, b))

0 commit comments

Comments
 (0)