[Issue 1298] More on foreach and tuple

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Jun 29 08:37:06 PDT 2007


http://d.puremagic.com/issues/show_bug.cgi?id=1298





------- Comment #1 from samukha at voliacable.com  2007-06-29 10:37 -------
One more bug:

template Foo(Strings...)
{
    const a1 = ["one", "two"]; //ok
    const a2 = [Strings]; // Error: cannot implicitly convert expression
(tuple("one","two")) of type (char[3], char[3]) to char
}

void main(char[][] args)
{
    alias Foo!("one", "two") foo;
}


-- 



More information about the Digitalmars-d-bugs mailing list