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
@dervied Salsa functions appear to silently ignore their keyword arguments. Consider the following testcase:
using Salsa
rt = Runtime()
@declare_input x(rt)::Int
set_x!(rt, 0)
@derived function f(rt::Runtime; y::Int = 0)
return x(rt) + y
end
println(f(rt; y = 2)) // This prints 0, as if the keyword argument `y = 2` was not provided
Perhaps if keyword arguments are not supported in Salsa, we should check for them and issue errors/warnings.
The text was updated successfully, but these errors were encountered:
@dervied
Salsa functions appear to silently ignore their keyword arguments. Consider the following testcase:Perhaps if keyword arguments are not supported in Salsa, we should check for them and issue errors/warnings.
The text was updated successfully, but these errors were encountered: