Skip to content

Commit e395399

Browse files
committed
update compiler tests
1 parent 9c9302e commit e395399

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/compiler/compiler.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1179,7 +1179,7 @@ let isa_tfunc = Core.Compiler.T_FFUNC_VAL[
11791179
@test isa_tfunc(Array{Real}, Type{AbstractArray{Int}}) === Const(false)
11801180
@test isa_tfunc(Array{Real, 2}, Const(AbstractArray{Real, 2})) === Const(true)
11811181
@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)
11831183
@test isa_tfunc(DataType, Const(Type{Int})) === Bool
11841184
@test isa_tfunc(DataType, Const(Type{Array})) === Bool
11851185
@test isa_tfunc(UnionAll, Const(Type{Int})) === Bool # could be improved
@@ -1245,7 +1245,7 @@ let subtype_tfunc = Core.Compiler.T_FFUNC_VAL[
12451245
@test subtype_tfunc(Type{Union{}}, Union{Type{Int64}, Type{Float64}}) === Const(true)
12461246
@test subtype_tfunc(Type{Union{}}, Union{Type{T}, Type{Float64}} where T) === Const(true)
12471247
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
12491249
end
12501250
@test subtype_tfunc(Type{Val{1}}, Type{Val{T}} where T) === Bool
12511251
@test subtype_tfunc(Type{Val{1}}, DataType) === Bool

0 commit comments

Comments
 (0)