www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 18824] New: [REG 2.080]

https://issues.dlang.org/show_bug.cgi?id=18824

          Issue ID: 18824
           Summary: [REG 2.080]
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: regression
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: the.mail.of.mi2 gmail.com

This code fails to compile:

import std.stdio;
import std.typecons;

alias Type = Tuple!(int, string);
void main()
{
    Type[] arr;
    arr = arr ~ tuple(2, "s");
    writeln(arr);
}

Message:
onlineapp.d(8): Error: cannot implicitly convert expression tuple(2,
"s").opBinaryRight(arr) of type Tuple!(Tuple!(int, string)[], int, string) to
Tuple!(int, string)[]

I can't see anything in changelog that could be related to this, thus I expect
it's a regression.

--
May 04 2018