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

           Summary: std.typecons.wrap doesn't consider private members
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: [email protected]
        ReportedBy: [email protected]


--- Comment #0 from SHOO <[email protected]> 2013-06-16 06:47:58 PDT ---
This code should be work (in git master head):
---------------------------------
import std.stdio, std.range, std.typecons;

interface MyInputRange(T)
{
    @property T front();
    void popFornt();
    @property bool empty();
}

void main()
{
    writeln(iota(0,10,1).inputRangeObject().wrap!(MyInputRange!int)());
}

----------------
RESULT;
Error: class std.range.InputRangeObject!(Result).InputRangeObject member _range
is not accessible
:
:

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

Reply via email to