Bug 3350 – Missing error message for bug 2788

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2009-09-29T02:19:00Z
Last change time
2015-06-09T01:26:48Z
Keywords
diagnostic
Assigned to
nobody
Creator
dfj1esp02

Comments

Comment #0 by dfj1esp02 — 2009-09-29T02:19:48Z
The error message "function is not callable using argument types" appears for normal functions, but doesn't appear for templated functions. ---- int gun() { return 0; } void fun() { pun(gun()); //no diagnostic for pun not callable sun(gun()); //function tmp.sun (ref const const(int) a) is not callable using argument types (int) } void pun(T)(const ref T a) { } void sun(const ref int a) { } ---