File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -1811,7 +1811,7 @@ JL_DLLEXPORT jl_value_t *jl_tupletype_fill(size_t n, jl_value_t *v)
1811
1811
1812
1812
static int contains_unions (jl_value_t * type )
1813
1813
{
1814
- if (jl_is_uniontype (type )) return 1 ;
1814
+ if (jl_is_uniontype (type )) return type != jl_bottom_type ;
1815
1815
if (jl_is_typector (type )) return contains_unions (((jl_typector_t * )type )-> body );
1816
1816
if (!jl_is_datatype (type )) return 0 ;
1817
1817
int i ;
@@ -1832,7 +1832,8 @@ static int is_typekey_ordered(jl_value_t **key, size_t n)
1832
1832
if (jl_is_type (k ) &&
1833
1833
!(jl_is_datatype (k ) && (((jl_datatype_t * )k )-> uid ||
1834
1834
k == ((jl_datatype_t * )k )-> name -> primary ||
1835
- (!jl_has_typevars_ (k ,1 ) && !contains_unions (k )))))
1835
+ (!jl_has_typevars_ (k ,1 ) && !contains_unions (k )))) &&
1836
+ k != jl_bottom_type )
1836
1837
return 0 ;
1837
1838
}
1838
1839
return 1 ;
You can’t perform that action at this time.
0 commit comments