digitalmars.D.bugs - [Issue 6201] New: [GSoC] Ref Non-Ref overloading doesn't work on structs.
- d-bugmail puremagic.com (33/33) Jun 23 2011 http://d.puremagic.com/issues/show_bug.cgi?id=6201
- d-bugmail puremagic.com (12/12) Jun 24 2011 http://d.puremagic.com/issues/show_bug.cgi?id=6201
http://d.puremagic.com/issues/show_bug.cgi?id=6201 Summary: [GSoC] Ref Non-Ref overloading doesn't work on structs. Product: D Version: D2 Platform: Other OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component: DMD AssignedTo: nobody puremagic.com ReportedBy: cristi.cobzarenco gmail.com --- Comment #0 from Cristi Cobzarenco <cristi.cobzarenco gmail.com> 2011-06-23 13:02:46 PDT --- 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) -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jun 23 2011
http://d.puremagic.com/issues/show_bug.cgi?id=6201 Kenji Hara <k.hara.pg gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |k.hara.pg gmail.com Resolution| |DUPLICATE --- Comment #1 from Kenji Hara <k.hara.pg gmail.com> 2011-06-24 04:48:56 PDT --- *** This issue has been marked as a duplicate of issue 4843 *** -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jun 24 2011