[Issue 4411] New: ranges + auto functions don't work
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Jul 1 09:04:06 PDT 2010
http://d.puremagic.com/issues/show_bug.cgi?id=4411
Summary: ranges + auto functions don't work
Product: D
Version: D2
Platform: Other
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Phobos
AssignedTo: nobody at puremagic.com
ReportedBy: ellery-newcomer at utulsa.edu
--- Comment #0 from Ellery Newcomer <ellery-newcomer at utulsa.edu> 2010-07-01 09:04:01 PDT ---
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
--
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