D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 4411 - ranges + auto functions don't work
Summary: ranges + auto functions don't work
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: phobos (show other issues)
Version: D2
Hardware: Other Linux
: P2 normal
Assignee: No Owner
URL:
Keywords:
Depends on: 3294
Blocks:
  Show dependency treegraph
 
Reported: 2010-07-01 09:04 UTC by Ellery Newcomer
Modified: 2010-08-14 18:49 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Ellery Newcomer 2010-07-01 09:04:01 UTC
import std.range;
import std.array;
struct X{
    string s;
    @property front(){
        return s.front;
    }
    @property void popFront(){
        s.popFront;
    }
    @property bool empty(){
        return s.empty;
    }
}

static assert(isInputRange!(X));



fails, though I can't for the life of me figure out why

dmd 2.047
Comment 1 David Simcha 2010-07-01 09:10:48 UTC
I'm almost sure this is related to bug 3294.  Adding as a dependency.
Comment 2 David Simcha 2010-08-14 18:49:24 UTC
Fixed 2.048, since 3294 got fixed.