[Issue 15032] [REG2.068.1] coverage output is discreted around the calls to map(), canFind(), filter()
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Tue Sep 8 18:49:10 PDT 2015
https://issues.dlang.org/show_bug.cgi?id=15032
--- Comment #1 from jiki at red.email.ne.jp ---
A reduced test case:
[command]
dmd -cov mod_a.d mod_b.d
[mod_a.d]
import std.string;
[mod_b.d]
import std.algorithm;
void main() {
int[] range; // this line should be counted
// but suppressed by this bug
// canFind, map, filter, and so on
range.canFind!((a,b)=>true)(0); // this line is counted(but wrong?)
}
[Output(mod_b.lst)]
...snipped...
| int[] range; // this line should be counted
| // but suppressed by this bug
| // canFind, map, filter, and so on
0000000| range.canFind!((a,b)=>true)(0); // this line is counted(but wrong?)
...snipped...
Note:
The order of mod_a.d and mod_b.d affects.
--
More information about the Digitalmars-d-bugs
mailing list