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
std.path.absolutePath should accept mutable pathnames. #2537
Conversation
@safe pure | ||
{ | ||
if (path.empty) return null; | ||
if (isAbsolute(path)) return path; | ||
immutable baseVar = base; | ||
const baseVar = base; |
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.
To fix compile error when you can't convert const to immutable. This should be harmless since immutability is not required here (we're just constructing a new path with buildPath
, so it should be fine as long as it's const
).
LGTM. |
Auto-merge toggled on |
std.path.absolutePath should accept mutable pathnames.
@quickfur Essentially this PR should cause errors, but it was accidentally hidden by the recent git-head regression 13498. We need to revert this change to fix compiler bug. Very sorry. |
Hm, why it can't be implicitly cast? |
Currently |
Revert pull request #2537 to fix git-head regression issue 13498
Fixes: https://issues.dlang.org/show_bug.cgi?id=12083