[Issue 15001] New: Duplicate error message without line number on if statement
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Tue Sep 1 19:23:08 PDT 2015
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 at puremagic.com
Reporter: k.hara.pg at 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'
--
More information about the Digitalmars-d-bugs
mailing list