Bug 6201 – [GSoC] Ref Non-Ref overloading doesn't work on structs.

Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
Other
OS
Windows
Creation time
2011-06-23T13:02:00Z
Last change time
2011-06-24T04:48:56Z
Assigned to
nobody
Creator
cristi.cobzarenco

Comments

Comment #0 by cristi.cobzarenco — 2011-06-23T13:02:46Z
Code: struct Test {} void f( Test x ) {} void f( ref Test x ) {} int main() { Test x; f( x ); return 0; } This fails with: main.d(8): Error: function main.f called with argument types: ((Test)) matches both: main.f(Test x) and: main.f(ref Test x)
Comment #1 by k.hara.pg — 2011-06-24T04:48:56Z
*** This issue has been marked as a duplicate of issue 4843 ***