Skip to content

Commit

Permalink
Merge pull request #1243 from 9rnsr/fix9431
Browse files Browse the repository at this point in the history
Issue 9431 - Tuple creation problem with array of array
  • Loading branch information
alexrp committed Apr 13, 2013
2 parents c642ad4 + b80cbad commit 80f80b7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions std/typecons.d
Original file line number Diff line number Diff line change
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 80f80b7

Please sign in to comment.