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>using Legolas
julia>using Legolas:@schema, @version
julia>@schema"example.foo" Foo
julia>@version FooV1 begin
a::Union{Missing, Int}
b::Union{Missing, Int}end
julia> x = (; a =missing, b =1)
(a =missing, b =1)
julia> y = (; a =missing, b =2)
(a =missing, b =2)
julia> x == y
false
julia>FooV1(x) ==FooV1(y)
ERROR: TypeError: non-boolean (Missing) used in boolean context
Stacktrace:
[1] ==(a::FooV1, b::FooV1)
@ Main ~/.julia/packages/Legolas/0cASP/src/schemas.jl:668
[2] top-level scope
@ REPL[11]:1
[3] top-level scope
@ ~/.julia/juliaup/julia-1.9.2+0.aarch64.apple.darwin14/share/julia/stdlib/v1.9/REPL/src/REPL.jl:1416
due to the implementation in
Legolas.jl/src/schemas.jl
Line 664 in 0d9ec27
The text was updated successfully, but these errors were encountered: