Skip to content

Commit

Permalink
Set Previews.rvalueRefParam by default
Browse files Browse the repository at this point in the history
  • Loading branch information
dkorpel committed Jan 8, 2025
1 parent 9dd70ec commit 25502cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/src/dmd/dscope.d
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ private struct Previews
this.in_ = params.previewIn;
this.inclusiveInContracts = params.inclusiveInContracts;
this.noSharedAccess = params.noSharedAccess == FeatureState.enabled;
this.rvalueRefParam = params.rvalueRefParam == FeatureState.enabled;
this.rvalueRefParam = params.rvalueRefParam != FeatureState.disabled;
this.safer = params.safer == FeatureState.enabled;
this.systemVariables = params.systemVariables;
}
Expand Down

0 comments on commit 25502cb

Please sign in to comment.