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: [email protected]
ReportedBy: [email protected]
--- Comment #0 from Cristi Cobzarenco <[email protected]> 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: -------