[Issue 10377] New: std.typecons.wrap doesn't consider private members

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Jun 16 06:47:59 PDT 2013


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: nobody at puremagic.com
        ReportedBy: zan77137 at nifty.com


--- Comment #0 from SHOO <zan77137 at nifty.com> 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: -------


More information about the Digitalmars-d-bugs mailing list