Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6928 from RazvanN7/Issue_16640
Fix Issue 16640 - __FILE_FULL_PATH__ doesn't return relative path when used as default parameter merged-on-behalf-of: Andrei Alexandrescu <andralex@users.noreply.github.com>
- Loading branch information
Showing
2 changed files
with
13 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// PERMUTE_ARGS: | ||
|
||
void testFileFullPathAsDefaultArgument(string preBakedFileFullPath, string fileFullPath = __FILE_FULL_PATH__) | ||
{ | ||
assert(preBakedFileFullPath == fileFullPath); | ||
} | ||
|
||
void main() | ||
{ | ||
testFileFullPathAsDefaultArgument(__FILE_FULL_PATH__); | ||
} |