jw3126 / ArgCheck.jl

Package for checking function arguments

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

chained == comparisons don't work

tpapp opened this issue · comments

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

Thanks for reporting! I will fix it at some point. As a workaround, you can of course do

@argcheck x == y
@argcheck y == z

Thanks. Works fine, could you please tag a release with this fix? Eg v0.2.1.