March 14, 2014 [Issue 12361] New: Coverage doesn't work on the functions mixin-ed from another module | ||||
---|---|---|---|---|
| ||||
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 --- Comment #0 from jiki@red.email.ne.jp 2014-03-13 19:58:54 PDT --- 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 # more convenient >rdmd -cov moda.d // 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: ------- |
March 14, 2014 [Issue 12361] Coverage doesn't work on the functions mixin-ed from another module | ||||
---|---|---|---|---|
| ||||
Posted in reply to jiki@red.email.ne.jp | https://d.puremagic.com/issues/show_bug.cgi?id=12361 --- Comment #1 from jiki@red.email.ne.jp 2014-03-13 20:09:27 PDT --- Using the -allinst flag makes no difference. -- Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation