mirror of
https://github.com/dlang/phobos.git
synced 2025-04-27 21:51:40 +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())
|
//TODO: @safe pure nothrow (because of reduce() and to())
|
||||||
if (isSomeChar!C)
|
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