Issue 7397 - [Regression] std.path.buildPath can't be used with string[]

This commit is contained in:
k-hara 2012-01-31 08:12:36 +09:00
parent 7c6caad85c
commit c07fe7c8ba

View file

@ -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);
}