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
Like the statement @[no]inline support, we can add support for callsite @constprop annotation. That should allow us to something like:
julia>@noinlinef_constprop_simple(f, x) = (f(x); Val{x}())
f_constprop_simple (generic function with 1 method)
julia>@test Base.return_types((Function,)) do f
Base.@constprop:aggressivef_constprop_simple(f, 1)
end|> only == Val{1}
The text was updated successfully, but these errors were encountered:
Like the statement
@[no]inline
support, we can add support for callsite@constprop
annotation. That should allow us to something like:The text was updated successfully, but these errors were encountered: