[Issue 15032] New: [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:46:56 PDT 2015
https://issues.dlang.org/show_bug.cgi?id=15032
Issue ID: 15032
Summary: [REG2.068.1] coverage output is discreted around the
calls to map(), canFind(), filter()
Product: D
Version: D2
Hardware: x86_64
OS: Windows
Status: NEW
Severity: regression
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: jiki at red.email.ne.jp
This is a 2.068.1 issue, not 2.068.0.
The coverage counts for the lines are ommited,
around some range operations holding lambdas.
Image:
|bool isParentOf(in Symbol p, in Symbol sym, in Scope scx ) {
| if (!p.hasBaseClass)
| return false;
| if (!sym)
| return false;
| auto names = sym.baseClasses;
0000000| if (names.canFind!((a,b)=>a==b)(p.name))
| return true;
| auto list = names.map!toAggrSym;
0000000| if (list.canFind!((n, p)=>isParentOf(p, n.s, n.scx))(p))
| return true;
| return false;
|}
--
More information about the Digitalmars-d-bugs
mailing list