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
Allow const
parameters in REST generator
#2552
Conversation
Casting The Nowhere in the serializer do we have away |
cf81fd3
to
dce2559
Compare
Updated |
Test plz |
dce2559
to
7ef0ab0
Compare
Added |
7ef0ab0
to
ddb7831
Compare
ddb7831
to
2502b4a
Compare
@s-ludwig : Looks like our CI is broken ? |
Indeed, it's also triggering in Buildkite: dlang/dmd#12526 (comment) |
@Geod24 I think the cause may have been this PR: rejectedsoftware/diet-ng#92 |
@omerfirmak : Please rebase |
2502b4a
to
d330315
Compare
Rebased |
|
What, dlang/dmd@2333339 should've fixed it. |
Only for v2.096.1 and above (LDC 1.26). So you need to version out the test for anything less than that (we test with 10 versions of DMD). But it also fails on dmd-latest so no luck here. |
d330315
to
c91e415
Compare
@@ -300,7 +301,7 @@ import std.traits : hasUDA; | |||
pi.isOut = true; | |||
} else static if (SC & ParameterStorageClass.ref_) { | |||
pi.isIn = true; | |||
pi.isOut = true; | |||
pi.isOut = isMutable!PT; |
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.
Let's see if this will help. Works fine on LDC 1.27.0.
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.
Hold on, we use inIn
for "input parameter", not the in
storage class, right ? Damn that's confusing :D
This also allows
in
parameters to be used with--preview=in
.