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
There is a warning I don't get in 0.4: WARNING: Method definition #1(Any) in module Main at foo.jl:5 overwritten at foo.jl:5.
The code segfaults.
foo(a,x...)=(randn(),)
for (f,g) in ((:asin,:sin), (:acos,:cos))
gx = eval(g)
foo(::Type{Val{f}},x...)=map(x->2gx(x),foo(Val{b},x...))
end
foo(Val{:asin},3)
The text was updated successfully, but these errors were encountered:
Two issues with the following code:
WARNING: Method definition #1(Any) in module Main at foo.jl:5 overwritten at foo.jl:5.
The text was updated successfully, but these errors were encountered: