digitalmars.D.bugs - [Issue 15830] New: UFCS prevents to select a free function when the
- via Digitalmars-d-bugs (28/28) Mar 24 2016 https://issues.dlang.org/show_bug.cgi?id=15830
https://issues.dlang.org/show_bug.cgi?id=15830 Issue ID: 15830 Summary: UFCS prevents to select a free function when the parameter has a member with the same name Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: normal Priority: P1 Component: dmd Assignee: nobody puremagic.com Reporter: b2.temp gmx.com Maybe DMD could detect that if the call to a member function is invalid this is maybe because it's a call to another function. struct Foo { uint _value; alias _value this; void test(){} } void test(uint param0, string param1){} void main() { Foo foo; foo.test(""); // want to call the free function, not the member }
Mar 24 2016