Permalink
Browse files

Merge pull request #1243 from 9rnsr/fix9431

Issue 9431 - Tuple creation problem with array of array
  • Loading branch information...
2 parents c642ad4 + b80cbad commit 80f80b7cdfe8e7bea9c93bcd8c4d59aaf234b104 @alexrp alexrp committed Apr 13, 2013
Showing with 6 additions and 2 deletions.
  1. +6 −2 std/typecons.d
View
@@ -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)
{
@@ -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
{

0 comments on commit 80f80b7

Please sign in to comment.