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
Any function that is called within a generated function needs to be defined before the generated function definition otherwise we encounter a MethodError from the world being too new:
julia>f1() =1
f1 (generic function with 1 method)
julia>@generatedfunctiong1()
v =f1()
quotereturn$v
endend
g1 (generic function with 1 method)
julia>g1()
1
vs.
julia>@generatedfunctiong2()
v =f2()
quotereturn$v
endend
g2 (generic function with 1 method)
julia>f2() =1
f2 (generic function with 1 method)
julia>g2()
ERROR: MethodError: no method matching f2()
The applicable method may be too new: running in world age 21396, while current world is 21397.
Closest candidates are:f2() at REPL[5]:1 (method too new to be called from this world context.)
Stacktrace:
[1] g2(...) at ./REPL[4]:2
Any function that is called within a generated function needs to be defined before the generated function definition otherwise we encounter a
MethodError
from the world being too new:vs.
Introduced with #17057
The text was updated successfully, but these errors were encountered: