File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -220,6 +220,9 @@ static int obviously_unequal(jl_value_t *a, jl_value_t *b)
220
220
if ((jl_is_concrete_type (a ) || jl_is_concrete_type (b )) &&
221
221
jl_type_equality_is_identity (a , b ))
222
222
return 1 ;
223
+ if ((jl_is_concrete_type (a ) && jl_is_typevar (b )) ||
224
+ (jl_is_concrete_type (b ) && jl_is_typevar (a )))
225
+ return 1 ;
223
226
if (jl_is_unionall (a )) a = jl_unwrap_unionall (a );
224
227
if (jl_is_unionall (b )) b = jl_unwrap_unionall (b );
225
228
if (jl_is_datatype (a )) {
Original file line number Diff line number Diff line change @@ -218,7 +218,6 @@ struct D21923{T,N}; v::D21923{T}; end
218
218
@test fieldtype (D21923, 1 ) == D21923
219
219
220
220
# issue #22624, more circular definitions
221
- #= broken again :-(
222
221
struct T22624{A,B,C}; v:: Vector{T22624{Int64,A}} ; end
223
222
let elT = T22624. body. body. body. types[1 ]. parameters[1 ]
224
223
@test elT == T22624{Int64, T22624. var, C} where C
@@ -227,7 +226,6 @@ let elT = T22624.body.body.body.types[1].parameters[1]
227
226
@test elT2. body. types[1 ]. parameters[1 ] === elT2
228
227
@test Base. isconcretetype (elT2. body. types[1 ])
229
228
end
230
- =#
231
229
232
230
# issue #3890
233
231
mutable struct A3890{T1}
You can’t perform that action at this time.
0 commit comments