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>@activeF(x) beginif x >0nothingelse:okendend
julia>
julia>@match-1beginF(:ok) =>false
_ =>trueend# true
ERROR: invalid use of active patterns:1-ary view pattern(F(x)) should accept Union{Some{T}, Nothing} instead of Union{T, Nothing}! A simple solution is:
(@activeF(x) ex) =>
(@activeF(x) let r=ex; r ===nothing? r :Some(r)) end
MLStyle.jl/src/StandardPatterns/Active.jl
Lines 117 to 147 in 2b7f0a7
The text was updated successfully, but these errors were encountered: