Skip to content

Commit c0cb5a0

Browse files
committed
update comparison methods
1 parent 133d5e9 commit c0cb5a0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/methods.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,14 +109,14 @@ Base.real(s::Symbolic{<:Number}) = term(real, s)
109109
# binary ops that return Bool
110110
for (f, Domain) in [(==) => Number, (!=) => Number,
111111
(<=) => Real, (>=) => Real,
112-
(< ) => Real, (> ) => Real,
112+
(isless) => Real, (> ) => Real,
113113
(& ) => Bool, (| ) => Bool,
114114
xor => Bool]
115115
@eval begin
116116
promote_symtype(::$(typeof(f)), ::Type{<:$Domain}, ::Type{<:$Domain}) = Bool
117-
(::$(typeof(f)))(a::Symbolic{<:$Domain}, b::$Domain) = term($f, a, b, type=Bool)
118-
(::$(typeof(f)))(a::Symbolic{<:$Domain}, b::Symbolic{<:$Domain}) = term($f, a, b, type=Bool)
119-
(::$(typeof(f)))(a::$Domain, b::Symbolic{<:$Domain}) = term($f, a, b, type=Bool)
117+
(::$(typeof(f)))(a::Symbolic, b::$Domain) = term($f, a, b, type=Bool)
118+
(::$(typeof(f)))(a::Symbolic, b::Symbolic) = term($f, a, b, type=Bool)
119+
(::$(typeof(f)))(a::$Domain, b::Symbolic) = term($f, a, b, type=Bool)
120120
end
121121
end
122122

0 commit comments

Comments
 (0)