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
(Using opaque closure to easily get a captured world age, but happens with any other world age capture mechanism also)
This is expected:
julia> using Base.Experimental: @opaque
julia> global callback = (args...)->nothing
#1 (generic function with 1 method)
julia> f = @opaque ()->callback()
()::Any->◌
julia> f()
julia> callback = (args...)->nothing
#4 (generic function with 1 method)
julia> f()
ERROR: MethodError: no method matching (::var"#4#5")()
The applicable method may be too new: running in world age 30972, while current world is 30973.
Closest candidates are:
(::var"#4#5")(::Any...) (method too new to be called from this world context.)
@ Main REPL[5]:1
This is missing the world age hint in the errorshow:
julia> using Base.Experimental: @opaque
julia> global callback = (args...; kwargs...)->nothing
#1 (generic function with 1 method)
julia> f = @opaque ()->callback(;a=1)
()::Any->◌
julia> f()
julia> callback = (args...; kwargs...)->nothing
#5 (generic function with 1 method)
julia> f()
ERROR: MethodError: no method matching (::var"#5#7")(; a::Int64)
Closest candidates are:
(::var"#5#7")(::Any...; kwargs...)
@ Main REPL[5]:1
Stacktrace:
[1] (::Tuple{})()
@ Main ./REPL[3]:1
[2] top-level scope
@ REPL[6]:1
The text was updated successfully, but these errors were encountered:
(Using opaque closure to easily get a captured world age, but happens with any other world age capture mechanism also)
This is expected:
This is missing the world age hint in the errorshow:
The text was updated successfully, but these errors were encountered: