@@ -1179,17 +1179,17 @@ 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) === Const ( false )
1182
+ @test isa_tfunc (DataType, Int) === Union{}
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
1186
1186
@test isa_tfunc (UnionAll, Const (Type{Array})) === Bool
1187
1187
@test isa_tfunc (Union, Const (Union{Float32, Float64})) === Bool
1188
1188
@test isa_tfunc (Union, Type{Union}) === Const (true )
1189
1189
@test isa_tfunc (typeof (Union{}), Const (Int)) === Const (false ) # any result is ok
1190
- @test isa_tfunc (typeof (Union{}), Const (Union{})) === Const ( false )
1190
+ @test isa_tfunc (typeof (Union{}), Const (Union{})) === Union{}
1191
1191
@test isa_tfunc (typeof (Union{}), typeof (Union{})) === Const (false )
1192
- @test isa_tfunc (typeof (Union{}), Union{}) === Const ( false ) # any result is ok
1192
+ @test isa_tfunc (typeof (Union{}), Union{}) === Union{} # any result is ok
1193
1193
@test isa_tfunc (typeof (Union{}), Type{typeof (Union{})}) === Const (true )
1194
1194
@test isa_tfunc (typeof (Union{}), Const (typeof (Union{}))) === Const (true )
1195
1195
let c = Conditional (Core. SlotNumber (0 ), Const (Union{}), Const (Union{}))
@@ -1204,7 +1204,7 @@ let isa_tfunc = Core.Compiler.T_FFUNC_VAL[
1204
1204
@test isa_tfunc (Val{1 }, Type{Val{T}} where T) === Bool
1205
1205
@test isa_tfunc (Val{1 }, DataType) === Bool
1206
1206
@test isa_tfunc (Any, Const (Any)) === Const (true )
1207
- @test isa_tfunc (Any, Union{}) === Const ( false ) # any result is ok
1207
+ @test isa_tfunc (Any, Union{}) === Union{} # any result is ok
1208
1208
@test isa_tfunc (Any, Type{Union{}}) === Const (false )
1209
1209
@test isa_tfunc (Union{Int64, Float64}, Type{Real}) === Const (true )
1210
1210
@test isa_tfunc (Union{Int64, Float64}, Type{Integer}) === Bool
0 commit comments