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
I see how the Proposal/PR is related, regarding mostly this comment
However I fail to understand how or why it should be considered an anonymous struct when the type is effectively known (self.items: []const L), in which case it wouldn't be so much a regression but rather a bug in the removal of anonymous struct types
The type isn't known through RLS because ++ is quite loose on types (the LHS and RHS can both be slices, or arrays, or tuples, and you can even mix and match). So, unfortunately, you do currently need to specify the inner type to make this work.
Zig Version
0.14.0-dev.2922+f77e1b862
Steps to Reproduce and Observed Behavior
0.13.0 Godbolt Working
0.14.0 Godbolt Erroring
Expected Behavior
As it was a feature that worked in 0.13.0 I'd expect this to work the same way in 0.14.0
The text was updated successfully, but these errors were encountered: