chained == comparisons don't work
tpapp opened this issue · comments
Tamas K. Papp commented
julia> using ArgCheck
julia> x = y = z = 1
1
julia> x == y == z
true
julia> @argcheck x == y == z
ERROR: MethodError: objects of type Int64 are not callable
Jan Weidner commented
Thanks for reporting! I will fix it at some point. As a workaround, you can of course do
@argcheck x == y
@argcheck y == z
Tamas K. Papp commented
Thanks. Works fine, could you please tag a release with this fix? Eg v0.2.1
.