-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add return
to ctor parameters
#92
base: master
Are you sure you want to change the base?
Conversation
only in algebraic.d so far works around dip1000 compiler bug in general should rather fix issues than introduce new ones
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #92 +/- ##
=======================================
Coverage 38.68% 38.68%
=======================================
Files 12 12
Lines 473 473
=======================================
Hits 183 183
Misses 290 290 ☔ View full report in Codecov by Sentry. |
Looks good. However, I would like to get approval from an additional Symmetry developer. @kinke, doesn't it need to be tested on the private codebase first? |
@@ -728,7 +728,7 @@ Compatible with BetterC mode. | |||
alias Nullable(T...) = Variant!(typeof(null), T); | |||
|
|||
/// ditto | |||
Nullable!T nullable(T)(T t) | |||
Nullable!T nullable(T)(return T t) | |||
{ | |||
import core.lifetime: forward; | |||
return Nullable!T(forward!t); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unrelated, I know, but forward
doesn't really make sense here, for a non-auto ref
param. It always boils down to a move
for non-ref params.
@WebFreak001: You can test this in a SIL MR by changing the |
only added this in algebraic.d (since that's the module I care about and found the bug in)
works around dip1000 compiler bug
in general should rather fix issues than introduce new ones