mirror of
https://github.com/dlang/phobos.git
synced 2025-04-27 13:40:20 +03:00
Issue 7397 - [Regression] std.path.buildPath can't be used with string[]
This commit is contained in:
parent
7c6caad85c
commit
c07fe7c8ba
1 changed files with 7 additions and 1 deletions
|
@ -899,7 +899,7 @@ unittest
|
|||
}
|
||||
---
|
||||
*/
|
||||
immutable(C)[] buildPath(C)(const(C)[][] paths...)
|
||||
immutable(C)[] buildPath(C)(const(C[])[] paths...)
|
||||
//TODO: @safe pure nothrow (because of reduce() and to())
|
||||
if (isSomeChar!C)
|
||||
{
|
||||
|
@ -954,6 +954,12 @@ unittest
|
|||
}
|
||||
}
|
||||
|
||||
unittest
|
||||
{
|
||||
// Test for issue 7397
|
||||
string[] ary = ["a", "b"];
|
||||
buildPath(ary);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue