digitalmars.D.bugs - [Issue 9010] New: opEquals() const results in not-covered code
- d-bugmail puremagic.com (37/37) Nov 12 2012 http://d.puremagic.com/issues/show_bug.cgi?id=9010
- d-bugmail puremagic.com (11/11) Nov 17 2012 http://d.puremagic.com/issues/show_bug.cgi?id=9010
- d-bugmail puremagic.com (10/10) Nov 17 2012 http://d.puremagic.com/issues/show_bug.cgi?id=9010
http://d.puremagic.com/issues/show_bug.cgi?id=9010 Summary: opEquals() const results in not-covered code Product: D Version: D2 Platform: x86_64 OS/Version: Linux Status: NEW Severity: trivial Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: puremagic mikevandongen.nl --- Comment #0 from Mike van Dongen <puremagic mikevandongen.nl> 2012-11-12 10:18:51 PST --- When I use `bool opEquals(A o)`, the compiler says my code is completely covered. The 0000000 doesn't appear, nor does any other number. Changing the method opEquals to a const results in not-covered code, while nothing else changes. |void main() {} | |struct A 0000000|{ | bool opEquals(A o) const | { 1| return false; | } | | unittest | { 1| auto a = A(); 1| auto b = A(); 1| assert(a != b); | } |} -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Nov 12 2012
http://d.puremagic.com/issues/show_bug.cgi?id=9010 --- Comment #1 from github-bugzilla puremagic.com 2012-11-17 20:09:26 PST --- Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/28b10fe8d396aa4760718484834b835e3e2038c8 fix Issue 9010 - opEquals() const results in not-covered code https://github.com/D-Programming-Language/dmd/commit/001b6908bfec8d608d77d77dbe18ffcddb57149e Merge pull request #1284 from 9rnsr/fix9010 Issue 9010 - opEquals() const results in not-covered code -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Nov 17 2012
http://d.puremagic.com/issues/show_bug.cgi?id=9010 Walter Bright <bugzilla digitalmars.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |bugzilla digitalmars.com Resolution| |FIXED -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Nov 17 2012