www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 10052] New: Tuple not assignable in shared static module constructor

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

           Summary: Tuple not assignable in shared static module
                    constructor
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: tommitissari hotmail.com



module main;

import std.typecons;

shared static Tuple!(int, int) ints;

shared static this()
{




}


// Error: template std.typecons.Tuple!(int, int).Tuple.opAssign
// does not match any function template declaration. Candidates are:
// /usr/share/dmd/src/phobos/std/typecons.d(483): std.typecons.
// Tuple!(int, int).Tuple.opAssign(R)(R rhs) if (isTuple!(R) &&
allSatisfy!(isAssignable, Types))
// Error: template std.typecons.Tuple!(int, int).Tuple.opAssign(R)(R rhs)
// if (isTuple!(R) && allSatisfy!(isAssignable, Types)) cannot deduce
// template function from argument types !()(Tuple!(int, int))

void main()
{}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 09 2013