@@ -1179,7 +1179,7 @@ let isa_tfunc = Core.Compiler.T_FFUNC_VAL[
1179
1179
@test isa_tfunc (Array{Real}, Type{AbstractArray{Int}}) === Const (false )
1180
1180
@test isa_tfunc (Array{Real, 2 }, Const (AbstractArray{Real, 2 })) === Const (true )
1181
1181
@test isa_tfunc (Array{Real, 2 }, Const (AbstractArray{Int, 2 })) === Const (false )
1182
- @test isa_tfunc (DataType, Int) === Bool # could be improved
1182
+ @test isa_tfunc (DataType, Int) === Const ( false )
1183
1183
@test isa_tfunc (DataType, Const (Type{Int})) === Bool
1184
1184
@test isa_tfunc (DataType, Const (Type{Array})) === Bool
1185
1185
@test isa_tfunc (UnionAll, Const (Type{Int})) === Bool # could be improved
@@ -1245,7 +1245,7 @@ let subtype_tfunc = Core.Compiler.T_FFUNC_VAL[
1245
1245
@test subtype_tfunc (Type{Union{}}, Union{Type{Int64}, Type{Float64}}) === Const (true )
1246
1246
@test subtype_tfunc (Type{Union{}}, Union{Type{T}, Type{Float64}} where T) === Const (true )
1247
1247
let c = Conditional (Core. SlotNumber (0 ), Const (Union{}), Const (Union{}))
1248
- @test subtype_tfunc (c, Const (Bool)) === Bool # any result is ok
1248
+ @test subtype_tfunc (c, Const (Bool)) === Const ( true ) # any result is ok
1249
1249
end
1250
1250
@test subtype_tfunc (Type{Val{1 }}, Type{Val{T}} where T) === Bool
1251
1251
@test subtype_tfunc (Type{Val{1 }}, DataType) === Bool
0 commit comments