File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -137,7 +137,7 @@ julia> isequal(missing, missing)
137137true
138138```
139139"""
140- isequal (x, y) = x == y
140+ isequal (x, y) = ( x == y) :: Bool # all `missing` cases are handled in missing.jl
141141
142142signequal (x, y) = signbit (x):: Bool == signbit (y):: Bool
143143signless (x, y) = signbit (x):: Bool & ! signbit (y):: Bool
Original file line number Diff line number Diff line change @@ -81,6 +81,14 @@ import Base.<
8181@test isequal (minmax (TO23094 (2 ), TO23094 (1 ))[1 ], TO23094 (1 ))
8282@test isequal (minmax (TO23094 (2 ), TO23094 (1 ))[2 ], TO23094 (2 ))
8383
84+ let m = Module ()
85+ @eval m begin
86+ struct Foo end
87+ foo (xs) = isequal (xs[1 ], Foo ())
88+ end
89+ @test ! (@inferred m. foo (Any[42 ]))
90+ end
91+
8492@test isless (' a' ,' b' )
8593
8694@testset " isgreater" begin
You can’t perform that action at this time.
0 commit comments