digitalmars.D.bugs - [Issue 11681] New: std.datetime.IntervalRange.opAssign with non-ref parameter is required
- d-bugmail puremagic.com (35/35) Dec 04 2013 https://d.puremagic.com/issues/show_bug.cgi?id=11681
- d-bugmail puremagic.com (7/7) Dec 08 2013 https://d.puremagic.com/issues/show_bug.cgi?id=11681
- d-bugmail puremagic.com (10/10) Dec 13 2013 https://d.puremagic.com/issues/show_bug.cgi?id=11681
- d-bugmail puremagic.com (9/9) Dec 13 2013 https://d.puremagic.com/issues/show_bug.cgi?id=11681
https://d.puremagic.com/issues/show_bug.cgi?id=11681 Summary: std.datetime.IntervalRange.opAssign with non-ref parameter is required Product: D Version: D2 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: Phobos AssignedTo: nobody puremagic.com ReportedBy: electrolysis.jp+d gmail.com --- import std.datetime; void main(){ auto interval1 = Interval!Date(Date(2013, 1, 1), Date(2013, 1, 4)); auto interval2 = Interval!Date(Date(2014, 2, 1), Date(2014, 2, 4)); auto range1 = interval1.fwdRange(a => a + 1.days); auto range2 = interval2.fwdRange(a => a + 1.days); range1 = range2; // ok range1 = range2.save; // compilation error // range1 = interval2.fwdRange(a => a + 2.days); // compilation error } ---- This code causes the following compilation error: foo.d(11): Error: function std.datetime.IntervalRange!(Date, cast(Direction)1) .IntervalRange.opAssign (ref IntervalRange!(Date, cast(Direction)1) rhs) is not callable using argument types (IntervalRange!(Date, cast(Direction)1)) The same problem will occur in PosInfIntervalRange and NegInfIntervalRange. Due to this, IntervalRange can't be passed to std.algorithm.map. -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Dec 04 2013
https://d.puremagic.com/issues/show_bug.cgi?id=11681 --- Pull Request: https://github.com/D-Programming-Language/phobos/pull/1758 -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Dec 08 2013
https://d.puremagic.com/issues/show_bug.cgi?id=11681 Commit pushed to master at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/6e7b79bed3a6239ddeb0f21b2ad6e45276bb976a Fix Issue 11681 - std.datetime.IntervalRange.opAssign with non-ref parameter is required -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Dec 13 2013
https://d.puremagic.com/issues/show_bug.cgi?id=11681 e10s <electrolysis.jp+d gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Dec 13 2013