You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
julia>struct Ints x ::Intend
julia> z =Ints(1)
Ints(1)
julia> Lazy.@switch z.x begin1; println("one") end
ERROR: TypeError: non-boolean (Int64) used in boolean context
@switch on variables works as expected:
julia> x =11
julia> Lazy.@switch x begin1; println("one") end
one
The text was updated successfully, but these errors were encountered:
This problem doesn't seem fixed in the latest versions. Is there a workaround? Trying someStruct.someField == _ also gives the error ERROR: LoadError: syntax: all-underscore identifier used as rvalue around /Users/evar/.julia/packages/Lazy/KYseE/src/macros.jl:45.
Julia 0.6.2, Lazy 0.12
@switch
on variables works as expected:The text was updated successfully, but these errors were encountered: