[Issue 15046] New: [REG2.068] isForwardRange documentation is documenting issue 14544

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sat Sep 12 04:13:46 PDT 2015


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

          Issue ID: 15046
           Summary: [REG2.068] isForwardRange documentation is documenting
                    issue 14544
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: regression
          Priority: P1
         Component: dlang.org
          Assignee: nobody at puremagic.com
          Reporter: k.hara.pg at gmail.com

See: http://dlang.org/phobos/std_range_primitives#isForwardRange

The "Examples" section is now:
-----
Examples:
static assert(!isForwardRange!(int));
static assert( isForwardRange!(int[]));
static assert( isForwardRange!(inout(int)[]));

// BUG 14544
struct R14544
{
    int front() { return 0;}
    void popFront() {}
    bool empty() { return false; }
    R14544 save() {return this;}
}

static assert( isForwardRange!R14544 );
-----

I think BUG 14544 should not be documented.

--


More information about the Digitalmars-d-bugs mailing list