Bug 9479 – _error_ in error message of type inference of a delegate literal
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-02-08T02:41:00Z
Last change time
2013-02-09T07:31:13Z
Keywords
diagnostic, pull
Assigned to
andrej.mitrovich
Creator
clugdbug
Comments
Comment #0 by clugdbug — 2013-02-08T02:41:29Z
int delegate() bug9479()
{
return { return something_undefined; };
}
bug.d(4): Error: undefined identifier something_undefined
bug.d(4): Error: mismatched function return type inference of _error_ and int
The second error message should be suppressed.
Comment #1 by andrej.mitrovich — 2013-02-08T11:17:00Z