← Back to index
|
Original Bugzilla link
Bug 4160 – Template function lookup should match non-template behavior for implicit conversion to shared params
Status
RESOLVED
Resolution
WORKSFORME
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Mac OS X
Creation time
2010-05-05T14:30:07Z
Last change time
2019-08-18T23:05:16Z
Assigned to
No Owner
Creator
Sean Kelly
Comments
Comment #0
by sean — 2010-05-05T14:30:07Z
void op(shared(int) x) {} void opT(T)(shared(T) x) {} void main() { int x; op(x); // works opT(x); // fails but should work }
Comment #1
by ag0aep6g — 2019-08-18T23:05:16Z
Works for me since DMD 2.080.