digitalmars.D.bugs - [Issue 12361] New: Coverage doesn't work on the functions mixin-ed from another module
- d-bugmail puremagic.com (40/42) Mar 13 2014 https://d.puremagic.com/issues/show_bug.cgi?id=12361
- d-bugmail puremagic.com (6/6) Mar 13 2014 https://d.puremagic.com/issues/show_bug.cgi?id=12361
https://d.puremagic.com/issues/show_bug.cgi?id=12361 Summary: Coverage doesn't work on the functions mixin-ed from another module Product: D Version: D2 Platform: All OS/Version: All Status: NEW Keywords: wrong-code Severity: normal Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: jiki red.email.ne.jp You create the following two modules. After you compile and run, the generated coverage data miss the last one.dmd -cov moda.d modb.d moda// moda.d import modb; void main() { local(); test(); } mixin My!(); mixin Foreign!(); mixin template My() { int local() { return 0; // OK: counted in moda.lst } } // modb.d mixin template Foreign() { int test() { return 0; // NG: never counted in modb.lst } } -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Mar 13 2014
https://d.puremagic.com/issues/show_bug.cgi?id=12361 Using the -allinst flag makes no difference. -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Mar 13 2014