digitalmars.D.bugs - [Issue 15001] New: Duplicate error message without line number on if
- via Digitalmars-d-bugs (34/34) Sep 01 2015 https://issues.dlang.org/show_bug.cgi?id=15001
https://issues.dlang.org/show_bug.cgi?id=15001 Issue ID: 15001 Summary: Duplicate error message without line number on if statement Product: D Version: D2 Hardware: All OS: All Status: NEW Keywords: diagnostic Severity: minor Priority: P1 Component: dmd Assignee: nobody puremagic.com Reporter: k.hara.pg gmail.com Test code: module test; // test.d import a; void main() { auto a = new A(); if (B b = a.foo()) {} } module a; // a.d import b; class A { B foo() { return null; } } module b; // b.d class B {} Command line: dmd -o- test.d Output: test.d(6): Error: undefined identifier 'B' Error: undefined identifier 'B' --
Sep 01 2015