Skip to content

Commit

Permalink
fix Issue 9431 - Tuple creation problem with array of array
Browse files Browse the repository at this point in the history
  • Loading branch information
9rnsr committed Apr 5, 2013
1 parent 41561d8 commit b80cbad
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions std/typecons.d
Expand Up @@ -412,8 +412,7 @@ writeln(t.expand); // 1 hello 2.3
Constructor taking one value for each field. Each argument must be
implicitly assignable to the respective element of the target.
*/
this(U...)(U values)
if (is(typeof({ void fun(Types); fun(values); })))
this()(Types values)
{
foreach (i, _; Types)
{
Expand Down Expand Up @@ -739,6 +738,11 @@ unittest
alias Tuple!(const(int)) T;
auto t2 = T(1);
}
// 9431
{
alias T = Tuple!(int[1][]);
auto t = T([[10]]);
}
}
unittest
{
Expand Down

0 comments on commit b80cbad

Please sign in to comment.