Skip to content

Commit

Permalink
Fixed more test fails...
Browse files Browse the repository at this point in the history
  • Loading branch information
TurkeyMan committed Nov 16, 2024
1 parent 1f42c4b commit 68f3ac5
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 10 deletions.
1 change: 1 addition & 0 deletions compiler/src/dmd/expressionsem.d
Original file line number Diff line number Diff line change
Expand Up @@ -3288,6 +3288,7 @@ private bool functionParameters(const ref Loc loc, Scope* sc,
else if (p.storageClass & STC.ref_)
{
if (global.params.rvalueRefParam == FeatureState.enabled &&
!p.storageClass & STC.return_ &&
!arg.isLvalue() &&
targ.isCopyable())
{ /* allow rvalues to be passed to ref parameters by copying
Expand Down
1 change: 1 addition & 0 deletions compiler/test/compilable/reverthelp.d
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@ Revertable language changes listed by -revert=name:
=dip1000 revert DIP1000 changes (Scoped Pointers) (https://github.com/dlang/DIPs/blob/master/DIPs/other/DIP1000.md)
=intpromote revert integral promotions for unary + - ~ operators
=dtorfields don't destruct fields of partially constructed objects
=rvaluerefparam revert rvalue arguments to ref parameters
----
*/
10 changes: 0 additions & 10 deletions compiler/test/fail_compilation/fail9773.d

This file was deleted.

0 comments on commit 68f3ac5

Please sign in to comment.