Skip to content

Commit

Permalink
Test case for 6700
Browse files Browse the repository at this point in the history
  • Loading branch information
Don Clugston committed Oct 24, 2011
1 parent 9224e1c commit 5c29b29
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/runnable/variadic.d
Expand Up @@ -1352,6 +1352,16 @@ void test64()
auto arr = new int[4];
auto x = arr[index]; // error
}

/***************************************/
// 6700

template bug6700(TList ...) {
const int bug6700 = 2;
}
TypeTuple!(int, long) TT6700;

static assert(bug6700!( (TT6700[1..$]) )==2);

/***************************************/

Expand Down

0 comments on commit 5c29b29

Please sign in to comment.