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

REST: Do not attempt to modify the return value #2518

Merged
merged 1 commit into from Jan 12, 2021

Conversation

Geod24
Copy link
Contributor

@Geod24 Geod24 commented Jan 12, 2021

If the return value of the functioin is const,
trying to re-assiign 'ret' will throw an error inside vibe.d.
Since the only purpose of this separation was for a deprecation message
inside a __traits(compiles), we just use RT.init to give it the correct type,
and merge the two lambdas together.

If the return value of the functioin is const,
trying to re-assiign 'ret' will throw an error inside vibe.d.
Since the only purpose of this separation was for a deprecation message
inside a __traits(compiles), we just use RT.init to give it the correct type,
and merge the two lambdas together.
@Geod24 Geod24 added the bug label Jan 12, 2021
@Geod24 Geod24 merged commit 7c44448 into vibe-d:master Jan 12, 2021
@Geod24 Geod24 deleted the const-return-values branch January 12, 2021 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants