Bug 5518 – No line number for incompatible types error message
Status
RESOLVED
Resolution
DUPLICATE
Severity
major
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2011-02-02T10:13:00Z
Last change time
2011-06-09T08:40:44Z
Keywords
diagnostic
Assigned to
nobody
Creator
bearophile_hugs
Comments
Comment #0 by bearophile_hugs — 2011-02-02T10:13:23Z
This D2 program:
import std.math;
void main() {
auto a = [&asin, &cbrt];
}
Its error message lacks a line number:
Error: incompatible types for ((& asin) ? (& cbrt)): 'real function(real x) pure nothrow @safe' and 'real function(real x) nothrow @trusted'
Comment #1 by yebblies — 2011-06-09T08:40:44Z
You'd actually already filed this bug 6 months earlier!
*** This issue has been marked as a duplicate of issue 4661 ***