[Issue 18824] New: [REG 2.080]
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Fri May  4 09:42:39 UTC 2018
    
    
  
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 at puremagic.com
          Reporter: the.mail.of.mi2 at 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.
--
    
    
More information about the Digitalmars-d-bugs
mailing list