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
For context, I'm mainly using Accessors.jl, and wanted a Lens!! to make things work similarly to BangBang. Using BangBang directly gives the above error, but it seems to fix things if I instead do
Uh, I totally forgot that I haven't still made BangBang compatible with Accessors
For the problem in the OP, I think we need to help inference somewhere to constprop :a.
BTW, for testing API like setproperty!! that requries constprop, you'd need to create a function like f!!(nt) = setproperty!!(nt, :a, 3) and pass it to the inference. IIUC it's the same for JET.
I haven't worked through the details, but I'd think this can be made to dispatch statically:
The text was updated successfully, but these errors were encountered: