Skip to content
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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

WebFreak001
Copy link
Contributor

@WebFreak001 WebFreak001 commented Nov 15, 2023

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

only in algebraic.d so far
works around dip1000 compiler bug
in general should rather fix issues than introduce new ones
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (69b98a4) 38.68% compared to head (399008b) 38.68%.

❗ 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.
📢 Have feedback on the report? Share it here.

@9il
Copy link
Member

9il commented Nov 15, 2023

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);
Copy link
Contributor

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.

@kinke
Copy link
Contributor

kinke commented Nov 17, 2023

@WebFreak001: You can test this in a SIL MR by changing the mir-core selection in master.selections.json to a git+https selection to your branch here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants