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

fix Issue 21801 - std.typecons.ReplaceType does not work for in parameters #7937

Merged
merged 1 commit into from
Apr 15, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions std/typecons.d
Original file line number Diff line number Diff line change
Expand Up @@ -9109,6 +9109,8 @@ private template replaceTypeInFunctionTypeUnless(alias pred, From, To, fun)
result ~= ", ";
if (storageClasses[i] & ParameterStorageClass.scope_)
result ~= "scope ";
if (storageClasses[i] & ParameterStorageClass.in_)
result ~= "in ";
if (storageClasses[i] & ParameterStorageClass.out_)
result ~= "out ";
if (storageClasses[i] & ParameterStorageClass.ref_)
Expand Down Expand Up @@ -9200,6 +9202,10 @@ private template replaceTypeInFunctionTypeUnless(alias pred, From, To, fun)
float function(lazy float, long),
int, float, int function(out long, ref const int),
float function(out long, ref const float),
int, float, int function(in long, ref const int),
float function(in long, ref const float),
int, float, int function(long, in int),
float function(long, in float),
int, int, int, int,
int, float, int, float,
int, float, const int, const float,
Expand Down